Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Apr 2010 00:49:24 +0000 (UTC)
From:      Xin LI <delphij@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/sbin/ifconfig ifconfig.c src/share/man/man4 netintro.4 src/sys/net if.c
Message-ID:  <201004280054.o3S0sOmI017944@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
delphij     2010-04-28 00:49:24 UTC

  FreeBSD src repository

  Modified files:        (Branch: RELENG_8)
    sbin/ifconfig        ifconfig.c 
    share/man/man4       netintro.4 
    sys/net              if.c 
  Log:
  SVN rev 207304 on 2010-04-28 00:49:24Z by delphij
  
  MFC r206637:
  
  When an underlying ioctl(2) handler returns an error, our ioctl(2)
  interface considers that it hits a fatal error, and will not copyout
  the request structure back for _IOW and _IOWR ioctls, keeping them
  untouched.
  
  The previous implementation of the SIOCGIFDESCR ioctl intends to
  feed the buffer length back to userland.  However, if we return
  an error, the feedback would be defeated and ifconfig(8) would
  trap into an infinite loop.
  
  This commit changes SIOCGIFDESCR to set buffer field to NULL to
  indicate the previous ENAMETOOLONG case.
  
  Reported by:    bschmidt
  
  Revision    Changes    Path
  1.146.2.5   +12 -11    src/sbin/ifconfig/ifconfig.c
  1.25.30.3   +6 -3      src/share/man/man4/netintro.4
  1.359.2.19  +3 -4      src/sys/net/if.c



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