diff options
author | Ted Lemon <source@isc.org> | 2000-03-06 19:39:54 +0000 |
---|---|---|
committer | Ted Lemon <source@isc.org> | 2000-03-06 19:39:54 +0000 |
commit | 7203e8eedf1c42849337d1bdde3fb33e4941835b (patch) | |
tree | 3066b6582794a6c89695f580e8c87ece0aa4c30b /common/lpf.c | |
parent | 0d9bfbfe141a816f099fd6fd407868913410a5b9 (diff) | |
download | isc-dhcp-7203e8eedf1c42849337d1bdde3fb33e4941835b.tar.gz |
Add interface deregistration routines (Brian Murrell).
Diffstat (limited to 'common/lpf.c')
-rw-r--r-- | common/lpf.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/common/lpf.c b/common/lpf.c index e1a88be1..37fce8fa 100644 --- a/common/lpf.c +++ b/common/lpf.c @@ -23,7 +23,7 @@ #ifndef lint static char copyright[] = -"$Id: lpf.c,v 1.21 2000/02/15 20:40:30 mellon Exp $ Copyright (c) 1995, 1996, 1998, 1999 The Internet Software Consortium. All rights reserved.\n"; +"$Id: lpf.c,v 1.22 2000/03/06 19:39:53 mellon Exp $ Copyright (c) 1995, 1996, 1998, 1999 The Internet Software Consortium. All rights reserved.\n"; #endif /* not lint */ #include "dhcpd.h" @@ -131,9 +131,9 @@ void if_deregister_send (info) are closed */ close (info -> wfdesc); #endif - info -> wfdesc = 0; + info -> wfdesc = -1; if (!quiet_interface_discovery) - log_info ("NOT Sending on LPF/%s/%s%s%s", + log_info ("Disabling output on LPF/%s/%s%s%s", info -> name, print_hw_addr (info -> hw_address.hbuf [0], info -> hw_address.hlen - 1, @@ -183,9 +183,9 @@ void if_deregister_receive (info) /* for LPF this is simple, packet filters are removed when sockets are closed */ close (info -> rfdesc); - info -> rfdesc = 0; + info -> rfdesc = -1; if (!quiet_interface_discovery) - log_info ("NOT Listening on LPF/%s/%s%s%s", + log_info ("Disabling input on LPF/%s/%s%s%s", info -> name, print_hw_addr (info -> hw_address.hbuf [0], info -> hw_address.hlen - 1, |