summaryrefslogtreecommitdiff
path: root/canohost.c
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 /canohost.c
parentb9d3f41ceb432a6edc53fa41e0af70872f14a56b (diff)
- (dtucker) [canohost.c] Bug #336: Only check ip options if IP_OPTIONS is
defined (fixes compile error on really old Linuxes).
Diffstat (limited to 'canohost.c')
-rw-r--r--canohost.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/canohost.c b/canohost.c
index 533f2c24..438175f7 100644
--- a/canohost.c
+++ b/canohost.c
@@ -159,6 +159,7 @@ get_remote_hostname(int socket, int use_dns)
static void
check_ip_options(int socket, char *ipaddr)
{
+#ifdef IP_OPTIONS
u_char options[200];
char text[sizeof(options) * 3 + 1];
socklen_t option_size;
@@ -181,6 +182,7 @@ check_ip_options(int socket, char *ipaddr)
packet_disconnect("Connection from %.100s with IP options:%.800s",
ipaddr, text);
}
+#endif /* IP_OPTIONS */
}
/*