summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2003-08-07 13:29:04 +1000
committerDarren Tucker <dtucker@zip.com.au>2003-08-07 13:29:04 +1000
commit89f4cf0d29c3cfbdd4ef697944afde7a887b5b1a (patch)
treefa44df8ab0d35106d9032642397e2a9f43baf32b
parentb9d3f41ceb432a6edc53fa41e0af70872f14a56b (diff)
- (dtucker) [canohost.c] Bug #336: Only check ip options if IP_OPTIONS is
defined (fixes compile error on really old Linuxes).
-rw-r--r--ChangeLog4
-rw-r--r--canohost.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 5d3d879fe..0f2f798e1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,8 @@
120030807 120030807
2 - (dtucker) [session.c] Have session_break_req not attempt to send a break 2 - (dtucker) [session.c] Have session_break_req not attempt to send a break
3 if TIOCSBRK and TIOCCBRK are not defined (eg Cygwin). 3 if TIOCSBRK and TIOCCBRK are not defined (eg Cygwin).
4 - (dtucker) [canohost.c] Bug #336: Only check ip options if IP_OPTIONS is
5 defined (eg really old Linux).
4 6
520030802 720030802
6 - (dtucker) [monitor.h monitor_wrap.h] Remove excess ident tags. 8 - (dtucker) [monitor.h monitor_wrap.h] Remove excess ident tags.
@@ -789,4 +791,4 @@
789 - Fix sshd BindAddress and -b options for systems using fake-getaddrinfo. 791 - Fix sshd BindAddress and -b options for systems using fake-getaddrinfo.
790 Report from murple@murple.net, diagnosis from dtucker@zip.com.au 792 Report from murple@murple.net, diagnosis from dtucker@zip.com.au
791 793
792$Id: ChangeLog,v 1.2880 2003/08/07 03:24:24 dtucker Exp $ 794$Id: ChangeLog,v 1.2881 2003/08/07 03:29:04 dtucker Exp $
diff --git a/canohost.c b/canohost.c
index 533f2c24a..438175f76 100644
--- a/canohost.c
+++ b/canohost.c
@@ -159,6 +159,7 @@ get_remote_hostname(int socket, int use_dns)
159static void 159static void
160check_ip_options(int socket, char *ipaddr) 160check_ip_options(int socket, char *ipaddr)
161{ 161{
162#ifdef IP_OPTIONS
162 u_char options[200]; 163 u_char options[200];
163 char text[sizeof(options) * 3 + 1]; 164 char text[sizeof(options) * 3 + 1];
164 socklen_t option_size; 165 socklen_t option_size;
@@ -181,6 +182,7 @@ check_ip_options(int socket, char *ipaddr)
181 packet_disconnect("Connection from %.100s with IP options:%.800s", 182 packet_disconnect("Connection from %.100s with IP options:%.800s",
182 ipaddr, text); 183 ipaddr, text);
183 } 184 }
185#endif /* IP_OPTIONS */
184} 186}
185 187
186/* 188/*