Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Apr 2002 18:42:44 -0700 (PDT)
From:      Brian Somers <brian@FreeBSD.org>
To:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/netinet in.c
Message-ID:  <200204100142.g3A1giH06544@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
brian       2002/04/09 18:42:44 PDT

  Modified files:
    sys/netinet          in.c 
  Log:
  Remove the code that masks an EEXIST returned from rtinit() when
  calling ioctl(SIOC[AS]IFADDR).
  
  This allows the following:
  
    ifconfig xx0 inet 1.2.3.1 netmask 0xffffff00
    ifconfig xx0 inet 1.2.3.17 netmask 0xfffffff0 alias
    ifconfig xx0 inet 1.2.3.25 netmask 0xfffffff8 alias
    ifconfig xx0 inet 1.2.3.26 netmask 0xffffffff alias
  
  but would (given the above) reject this:
  
    ifconfig xx0 inet 1.2.3.27 netmask 0xfffffff8 alias
  
  due to the conflicting netmasks.  I would assert that it's wrong
  to mask the EEXIST returned from rtinit() as in the above scenario, the
  deletion of the 1.2.3.25 address will leave the 1.2.3.27 address
  as unroutable as it was in the first place.
  
  Offered for review on: -arch, -net
  Discussed with: stephen macmanus <stephenm@bayarea.net>
  MFC after: 3 weeks
  
  Revision  Changes    Path
  1.65      +0 -4      src/sys/netinet/in.c

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200204100142.g3A1giH06544>