Patch for 'packet.c' in openssh-3.6.1p1

Bert Deknuydt Bert.Deknuydt at esat.kuleuven.ac.be
Fri Apr 11 21:45:06 EST 2003


Hello,

I just managed to compile openssh-3.6.1p1 on Ultrix/MIPS.  One of the fixes
needed for this is the following.  It's because of:

--- According to the Changelog
  - markus at cvs.openbsd.org 2002/12/10 19:26:50
     [packet.c]
     move tos handling to packet_set_tos; ok provos/henning/deraadt
---

This IP_TOS is now nicely stuffed in a function, but that function should
be #defined away for systems without IP_TOS or with a broken implementation.

Greetings, Bert

diff -c packet.c packet.c.orig
*** packet.c    2003-04-11 12:21:23.000000000 +0200
--- packet.c.orig       2003-04-11 13:31:58.000000000 +0200
***************
*** 1314,1321 ****
                return buffer_len(&output) < 128 * 1024;
  }
  
- #if defined(IP_TOS) && !defined(IP_TOS_IS_BROKEN)
- 
  static void
  packet_set_tos(int interactive)
  {
--- 1314,1319 ----
***************
*** 1330,1336 ****
                    tos, strerror(errno));
  }
  
- #endif
  
  /* Informs that the current session is interactive.  Sets IP flags for that. *                                                                            /
  
--- 1328,1333 ----


-- 
-------------- eMail Bert.Deknuydt at esat.kuleuven.ac.be ---------------
B.DeKnuydt, PSI-KULeuven                            Tel. +32-16-321880
Kasteelpark Arenberg 10          /|    | ||
B-3001 Leuven-Heverlee        _,_)|  4_|_||
FLANDERS, BELGIUM            / .                    Fax. +32-16-321838
-------------- http://www.esat.kuleuven.ac.be/~deknuydt --------------




More information about the openssh-unix-dev mailing list