"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "common/nit.c" between
dhcp-4.3.6-P1.tar.gz and dhcp-4.4.1.tar.gz

About: ISC DHCP implements the "Dynamic Host Configuration Protocols" for connection to a local network. 4.4.x release series.

nit.c  (dhcp-4.3.6-P1):nit.c  (dhcp-4.4.1)
/* nit.c /* nit.c
Network Interface Tap (NIT) network interface code, by Ted Lemon Network Interface Tap (NIT) network interface code, by Ted Lemon
with one crucial tidbit of help from Stu Grossmen. */ with one crucial tidbit of help from Stu Grossmen. */
/* /*
* Copyright (c) 2004,2007,2009,2014 by Internet Systems Consortium, Inc. ("ISC" ) * Copyright (c) 2004-2017 by Internet Systems Consortium, Inc. ("ISC")
* Copyright (c) 1996-2003 by Internet Software Consortium * Copyright (c) 1996-2003 by Internet Software Consortium
* *
* Permission to use, copy, modify, and distribute this software for any * This Source Code Form is subject to the terms of the Mozilla Public
* purpose with or without fee is hereby granted, provided that the above * License, v. 2.0. If a copy of the MPL was not distributed with this
* copyright notice and this permission notice appear in all copies. * file, You can obtain one at http://mozilla.org/MPL/2.0/.
* *
* THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
* OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
* *
* Internet Systems Consortium, Inc. * Internet Systems Consortium, Inc.
skipping to change at line 175 skipping to change at line 175
(info -> shared_network ? (info -> shared_network ?
info -> shared_network -> name : "")); info -> shared_network -> name : ""));
} }
#endif /* USE_NIT_SEND */ #endif /* USE_NIT_SEND */
#ifdef USE_NIT_RECEIVE #ifdef USE_NIT_RECEIVE
/* Packet filter program... /* Packet filter program...
XXX Changes to the filter program may require changes to the constant XXX Changes to the filter program may require changes to the constant
offsets used in if_register_send to patch the NIT program! XXX */ offsets used in if_register_send to patch the NIT program! XXX */
#if defined(RELAY_PORT)
#error "Relay port is not yet supported for NIT"
#endif
void if_register_receive (info) void if_register_receive (info)
struct interface_info *info; struct interface_info *info;
{ {
int flag = 1; int flag = 1;
u_int32_t x; u_int32_t x;
struct packetfilt pf; struct packetfilt pf;
struct strioctl sio; struct strioctl sio;
u_int16_t addr [2]; u_int16_t addr [2];
struct timeval t; struct timeval t;
 End of changes. 3 change blocks. 
4 lines changed or deleted 8 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)