cvs commit: src/sys/netinet in.c

Bruce M Simpson bms at FreeBSD.org
Thu Mar 29 21:39:25 UTC 2007


bms         2007-03-29 21:39:23 UTC

  FreeBSD src repository

  Modified files:
    sys/netinet          in.c 
  Log:
  Fix a bug in IPv4 address configuration exposed by refcounting.
   * Join the IPv4 all-hosts multicast group 224.0.0.1 once only;
     that is, when an IPv4 address is first configured on an interface.
   * Do not join it for subsequent IPv4 addresses as this violates IGMP.
   * Be sure to leave the group when all IPv4 addresses have been removed
     from the interface.
   * Add two DIAGNOSTIC printfs related to the issue.
  
  Further care and attention is needed in this area; it is suggested that
  netinet's attachment to the ifnet structure be compartmentalized and
  non-implicit.
  
  Bug found by:   andre
  MFC after:      1 month
  
  Revision  Changes    Path
  1.98      +40 -13    src/sys/netinet/in.c


More information about the cvs-src mailing list