Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/external/mpl/dhcp/dist/relay/dhcrelay.c,v rcsdiff: /ftp/cvs/cvsroot/src/external/mpl/dhcp/dist/relay/dhcrelay.c,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.3.2.1 retrieving revision 1.4 diff -u -p -r1.3.2.1 -r1.4 --- src/external/mpl/dhcp/dist/relay/dhcrelay.c 2021/05/31 22:15:06 1.3.2.1 +++ src/external/mpl/dhcp/dist/relay/dhcrelay.c 2021/05/21 21:07:37 1.4 @@ -1,11 +1,11 @@ -/* $NetBSD: dhcrelay.c,v 1.3.2.1 2021/05/31 22:15:06 cjep Exp $ */ +/* $NetBSD: dhcrelay.c,v 1.4 2021/05/21 21:07:37 christos Exp $ */ /* dhcrelay.c DHCP/BOOTP Relay Agent. */ /* - * Copyright(c) 2004-2021 by Internet Systems Consortium, Inc.("ISC") + * Copyright(c) 2004-2020 by Internet Systems Consortium, Inc.("ISC") * Copyright(c) 1997-2003 by Internet Software Consortium * * This Source Code Form is subject to the terms of the Mozilla Public @@ -29,7 +29,7 @@ */ #include -__RCSID("$NetBSD: dhcrelay.c,v 1.3.2.1 2021/05/31 22:15:06 cjep Exp $"); +__RCSID("$NetBSD: dhcrelay.c,v 1.4 2021/05/21 21:07:37 christos Exp $"); #include "dhcpd.h" #include @@ -169,7 +169,7 @@ extern int strip_relay_agent_options(str static void request_v4_interface(const char* name, int flags); static const char copyright[] = -"Copyright 2004-2021 Internet Systems Consortium."; +"Copyright 2004-2020 Internet Systems Consortium."; static const char arr[] = "All rights reserved."; static const char message[] = "Internet Systems Consortium DHCP Relay Agent"; @@ -264,7 +264,7 @@ char *progname; */ #include -__RCSID("$NetBSD: dhcrelay.c,v 1.3.2.1 2021/05/31 22:15:06 cjep Exp $"); +__RCSID("$NetBSD: dhcrelay.c,v 1.4 2021/05/21 21:07:37 christos Exp $"); static const char use_noarg[] = "No argument for command: %s"; #ifdef RELAY_PORT static const char use_port_defined[] = "Port already set, %s inappropriate"; @@ -1465,9 +1465,8 @@ add_relay_agent_options(struct interface return (length); } -#ifndef UNIT_TEST - #ifdef DHCPv6 +#ifndef UNIT_TEST /* * Parse a downstream argument: [address%]interface[#index]. */ @@ -2052,12 +2051,14 @@ process_down6(struct packet *packet) { if (if_id.data != NULL) data_string_forget(&if_id, MDL); } +#endif /* UNIT_TEST */ /* * Called by the dispatch packet handler with a decoded packet. */ void dhcpv6(struct packet *packet) { +#ifndef UNIT_TEST struct stream_list *dp; /* Try all relay-replies downwards. */ @@ -2080,8 +2081,9 @@ dhcpv6(struct packet *packet) { log_info("Can't process packet from interface '%s'.", packet->interface->name); +#endif /* UNIT_TEST */ } -#endif +#endif /* DHCPv6 */ /* Stub routines needed for linking with DHCP libraries. */ void @@ -2179,4 +2181,3 @@ void request_v4_interface(const char* na interface_snorf(tmp, (INTERFACE_REQUESTED | flags)); interface_dereference(&tmp, MDL); } -#endif /* UNIT_TEST */