From: Ted Lemon Date: Sat, 13 Mar 1999 18:56:47 +0000 (+0000) Subject: Add interface argument to can_*(). X-Git-Tag: V3-ALPHA-19990315~29 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=21d21e917248f264b73b75d236f7a557715b74e2;p=thirdparty%2Fdhcp.git Add interface argument to can_*(). --- diff --git a/common/bpf.c b/common/bpf.c index ef8244c4d..eee1d71ff 100644 --- a/common/bpf.c +++ b/common/bpf.c @@ -42,7 +42,7 @@ #ifndef lint static char copyright[] = -"$Id: bpf.c,v 1.23 1999/03/13 18:53:14 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n"; +"$Id: bpf.c,v 1.24 1999/03/13 18:56:46 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n"; #endif /* not lint */ #include "dhcpd.h" @@ -412,12 +412,14 @@ ssize_t receive_packet (interface, buf, len, from, hfrom) return 0; } -int can_unicast_without_arp () +int can_unicast_without_arp (ip) + struct interface_info *ip; { return 1; } -int can_receive_unicast_unconfigured () +int can_receive_unicast_unconfigured (ip) + struct interface_info *ip; { return 1; } diff --git a/common/dlpi.c b/common/dlpi.c index a32aca966..549348a3e 100644 --- a/common/dlpi.c +++ b/common/dlpi.c @@ -122,7 +122,7 @@ #ifndef lint static char copyright[] = -"$Id: dlpi.c,v 1.6 1999/03/13 18:53:14 mellon Exp $ Copyright (c) 1998, 1999 The Internet Software Consortium. All rights reserved.\n"; +"$Id: dlpi.c,v 1.7 1999/03/13 18:56:46 mellon Exp $ Copyright (c) 1998, 1999 The Internet Software Consortium. All rights reserved.\n"; #endif /* not lint */ static int strioctl PROTO ((int fd, int cmd, int timeout, int len, char *dp)); @@ -1242,12 +1242,14 @@ static void sigalrm (sig) } #endif /* !defined (USE_POLL) */ -int can_unicast_without_arp () +int can_unicast_without_arp (ip) + struct interface_info *ip; { return 1; } -int can_receive_unicast_unconfigured () +int can_receive_unicast_unconfigured (ip) + struct interface_info *ip; { return 1; } diff --git a/common/lpf.c b/common/lpf.c index dcaee002f..bbcfaea19 100644 --- a/common/lpf.c +++ b/common/lpf.c @@ -43,7 +43,7 @@ #ifndef lint static char copyright[] = -"$Id: lpf.c,v 1.5 1999/03/13 18:53:15 mellon Exp $ Copyright (c) 1995, 1996, 1998, 1999 The Internet Software Consortium. All rights reserved.\n"; +"$Id: lpf.c,v 1.6 1999/03/13 18:56:47 mellon Exp $ Copyright (c) 1995, 1996, 1998, 1999 The Internet Software Consortium. All rights reserved.\n"; #endif /* not lint */ #include "dhcpd.h" @@ -275,12 +275,14 @@ ssize_t receive_packet (interface, buf, len, from, hfrom) return length; } -int can_unicast_without_arp () +int can_unicast_without_arp (ip) + struct interface_info *ip; { return 1; } -int can_receive_unicast_unconfigured () +int can_receive_unicast_unconfigured (ip) + struct interface_info *ip; { return 1; } diff --git a/common/nit.c b/common/nit.c index ad89c9317..b741e8380 100644 --- a/common/nit.c +++ b/common/nit.c @@ -42,7 +42,7 @@ #ifndef lint static char copyright[] = -"$Id: nit.c,v 1.19 1999/03/13 18:53:15 mellon Exp $ Copyright (c) 1996, 1998, 1999 The Internet Software Consortium. All rights reserved.\n"; +"$Id: nit.c,v 1.20 1999/03/13 18:56:47 mellon Exp $ Copyright (c) 1996, 1998, 1999 The Internet Software Consortium. All rights reserved.\n"; #endif /* not lint */ #include "dhcpd.h" @@ -355,12 +355,14 @@ ssize_t receive_packet (interface, buf, len, from, hfrom) return length; } -int can_unicast_without_arp () +int can_unicast_without_arp (ip) + struct interface_info *ip; { return 1; } -int can_receive_unicast_unconfigured () +int can_receive_unicast_unconfigured (ip) + struct interface_info *ip; { return 1; } diff --git a/common/socket.c b/common/socket.c index c556ebfb7..c97a08ce2 100644 --- a/common/socket.c +++ b/common/socket.c @@ -50,7 +50,7 @@ #ifndef lint static char copyright[] = -"$Id: socket.c,v 1.32 1999/03/13 18:53:15 mellon Exp $ Copyright (c) 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium. All rights reserved.\n"; +"$Id: socket.c,v 1.33 1999/03/13 18:56:47 mellon Exp $ Copyright (c) 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium. All rights reserved.\n"; #endif /* not lint */ #include "dhcpd.h" @@ -264,13 +264,15 @@ void fallback_discard (protocol) #endif /* USE_SOCKET_SEND */ #if defined (USE_SOCKET_SEND) && !defined (USE_SOCKET_FALLBACK) -int can_unicast_without_arp () +int can_unicast_without_arp (ip) + struct interface_info *ip; { return 0; } /* On many stacks, we should return 1 here. */ -int can_receive_unicast_unconfigured () +int can_receive_unicast_unconfigured (ip) + struct interface_info *ip; { return 0; } diff --git a/common/upf.c b/common/upf.c index 7b6fbd5c3..0314b7029 100644 --- a/common/upf.c +++ b/common/upf.c @@ -42,7 +42,7 @@ #ifndef lint static char copyright[] = -"$Id: upf.c,v 1.7 1999/03/13 18:53:15 mellon Exp $ Copyright (c) 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium. All rights reserved.\n"; +"$Id: upf.c,v 1.8 1999/03/13 18:56:47 mellon Exp $ Copyright (c) 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium. All rights reserved.\n"; #endif /* not lint */ #include "dhcpd.h" @@ -306,12 +306,14 @@ ssize_t receive_packet (interface, buf, len, from, hfrom) return length; } -int can_unicast_without_arp () +int can_unicast_without_arp (ip) + struct interface_info *ip; { return 1; } -int can_receive_unicast_unconfigured () +int can_receive_unicast_unconfigured (ip) + struct interface_info *ip; { return 1; }