[BACK]Return to discover.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / external / mpl / dhcp / dist / common

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/external/mpl/dhcp/dist/common/discover.c between version 1.1.1.1 and 1.1.1.2

version 1.1.1.1, 2018/04/07 22:34:25 version 1.1.1.2, 2020/08/03 21:09:09
Line 5 
Line 5 
    Find and identify the network interfaces. */     Find and identify the network interfaces. */
   
 /*  /*
  * Copyright (c) 2004-2017 by Internet Systems Consortium, Inc. ("ISC")   * Copyright (c) 2004-2020 by Internet Systems Consortium, Inc. ("ISC")
  * Copyright (c) 1995-2003 by Internet Software Consortium   * Copyright (c) 1995-2003 by Internet Software Consortium
  *   *
  * This Source Code Form is subject to the terms of the Mozilla Public   * This Source Code Form is subject to the terms of the Mozilla Public
Line 44  __RCSID("$NetBSD$");
Line 44  __RCSID("$NetBSD$");
 # include <net/if6.h>  # include <net/if6.h>
 #endif  #endif
   
 struct interface_info *interfaces, *dummy_interfaces, *fallback_interface;  struct interface_info *interfaces = 0;
   struct interface_info *dummy_interfaces = 0;
   struct interface_info *fallback_interface = 0;
   
 int interfaces_invalidated;  int interfaces_invalidated;
 int quiet_interface_discovery;  int quiet_interface_discovery;
 u_int16_t local_port;  u_int16_t local_port;
Line 648  discover_interfaces(int state) {
Line 651  discover_interfaces(int state) {
                                 log_fatal("Error allocating interface %s: %s",                                  log_fatal("Error allocating interface %s: %s",
                                           info.name, isc_result_totext(status));                                            info.name, isc_result_totext(status));
                         }                          }
                         strncpy(tmp->name, info.name, sizeof(tmp->name) - 1);  
                           memcpy(tmp->name, info.name, sizeof(tmp->name));
   
                         interface_snorf(tmp, ir);                          interface_snorf(tmp, ir);
                         interface_dereference(&tmp, MDL);                          interface_dereference(&tmp, MDL);
                         tmp = interfaces; /* XXX */                          tmp = interfaces; /* XXX */

Legend:
Removed from v.1.1.1.1  
changed lines
  Added in v.1.1.1.2

CVSweb <webmaster@jp.NetBSD.org>