From: Ted Lemon Date: Sat, 13 Mar 1999 18:53:15 +0000 (+0000) Subject: Add can_receive_unicast_unconfigured X-Git-Tag: V3-ALPHA-19990315~31 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b547818bbf8fc155997b2b3ef651d7d1368fdfa6;p=thirdparty%2Fdhcp.git Add can_receive_unicast_unconfigured --- diff --git a/common/bpf.c b/common/bpf.c index 22f13f985..ef8244c4d 100644 --- a/common/bpf.c +++ b/common/bpf.c @@ -42,7 +42,7 @@ #ifndef lint static char copyright[] = -"$Id: bpf.c,v 1.22 1999/02/25 23:30:33 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n"; +"$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"; #endif /* not lint */ #include "dhcpd.h" @@ -417,6 +417,11 @@ int can_unicast_without_arp () return 1; } +int can_receive_unicast_unconfigured () +{ + return 1; +} + void maybe_setup_fallback () { struct interface_info *fbi; diff --git a/common/dlpi.c b/common/dlpi.c index 6ce626df7..a32aca966 100644 --- a/common/dlpi.c +++ b/common/dlpi.c @@ -122,7 +122,7 @@ #ifndef lint static char copyright[] = -"$Id: dlpi.c,v 1.5 1999/02/25 23:30:34 mellon Exp $ Copyright (c) 1998, 1999 The Internet Software Consortium. All rights reserved.\n"; +"$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"; #endif /* not lint */ static int strioctl PROTO ((int fd, int cmd, int timeout, int len, char *dp)); @@ -1247,6 +1247,11 @@ int can_unicast_without_arp () return 1; } +int can_receive_unicast_unconfigured () +{ + return 1; +} + void maybe_setup_fallback () { struct interface_info *fbi; diff --git a/common/lpf.c b/common/lpf.c index 9e37fa9c5..dcaee002f 100644 --- a/common/lpf.c +++ b/common/lpf.c @@ -43,7 +43,7 @@ #ifndef lint static char copyright[] = -"$Id: lpf.c,v 1.4 1999/02/25 23:30:34 mellon Exp $ Copyright (c) 1995, 1996, 1998, 1999 The Internet Software Consortium. All rights reserved.\n"; +"$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"; #endif /* not lint */ #include "dhcpd.h" @@ -280,6 +280,11 @@ int can_unicast_without_arp () return 1; } +int can_receive_unicast_unconfigured () +{ + return 1; +} + void maybe_setup_fallback () { struct interface_info *fbi; diff --git a/common/nit.c b/common/nit.c index 656a61819..ad89c9317 100644 --- a/common/nit.c +++ b/common/nit.c @@ -42,7 +42,7 @@ #ifndef lint static char copyright[] = -"$Id: nit.c,v 1.18 1999/02/25 23:30:35 mellon Exp $ Copyright (c) 1996, 1998, 1999 The Internet Software Consortium. All rights reserved.\n"; +"$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"; #endif /* not lint */ #include "dhcpd.h" @@ -360,6 +360,11 @@ int can_unicast_without_arp () return 1; } +int can_receive_unicast_unconfigured () +{ + return 1; +} + void maybe_setup_fallback () { struct interface_info *fbi; diff --git a/common/socket.c b/common/socket.c index 891f33b30..c556ebfb7 100644 --- a/common/socket.c +++ b/common/socket.c @@ -50,7 +50,7 @@ #ifndef lint static char copyright[] = -"$Id: socket.c,v 1.31 1999/02/25 23:30:36 mellon Exp $ Copyright (c) 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium. All rights reserved.\n"; +"$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"; #endif /* not lint */ #include "dhcpd.h" @@ -269,6 +269,12 @@ int can_unicast_without_arp () return 0; } +/* On many stacks, we should return 1 here. */ +int can_receive_unicast_unconfigured () +{ + return 0; +} + /* If we have SO_BINDTODEVICE, set up a fallback interface; otherwise, do not. */ diff --git a/common/upf.c b/common/upf.c index 71d9254b3..7b6fbd5c3 100644 --- a/common/upf.c +++ b/common/upf.c @@ -42,7 +42,7 @@ #ifndef lint static char copyright[] = -"$Id: upf.c,v 1.6 1999/02/25 23:30:36 mellon Exp $ Copyright (c) 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium. All rights reserved.\n"; +"$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"; #endif /* not lint */ #include "dhcpd.h" @@ -311,6 +311,11 @@ int can_unicast_without_arp () return 1; } +int can_receive_unicast_unconfigured () +{ + return 1; +} + void maybe_setup_fallback () { struct interface_info *fbi;