freebsd-skq/sbin/ifconfig
delphij 58be1647f8 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
MFC after:	2 weeks
2010-04-14 22:02:19 +00:00
..
af_atalk.c - Use size_t instead of int when appropriate; 2009-06-23 23:49:52 +00:00
af_inet6.c Improve flexibility of receiving Router Advertisement and 2009-09-12 22:08:20 +00:00
af_inet.c Reject invalid CIDR widths rather than silently stopping at the first 2010-01-14 15:27:18 +00:00
af_ipx.c Remove IPX over IP tunneling pieces from ifconfig(8), omitted portion of 2007-06-13 18:07:59 +00:00
af_link.c use getifaddrs from libc instead of private code 2007-02-24 23:55:46 +00:00
af_nd6.c Use printb() to display the "nd6 options=" line. 2009-10-12 21:11:50 +00:00
ifbridge.c Add an option to limit the number of source MACs that can be behind a bridge 2007-11-04 08:32:27 +00:00
ifcarp.c Shortening a passphrase caused wrong authentication key to be used. 2010-02-04 11:43:22 +00:00
ifclone.c - Use size_t instead of int when appropriate; 2009-06-23 23:49:52 +00:00
ifconfig.8 Add TSO support on VLAN in fconfig(8). 2010-02-20 23:01:09 +00:00
ifconfig.c When an underlying ioctl(2) handler returns an error, our ioctl(2) 2010-04-14 22:02:19 +00:00
ifconfig.h - Use size_t instead of int when appropriate; 2009-06-23 23:49:52 +00:00
ifgif.c Use printb() instead of rolling its own routine to display 2009-09-07 15:52:15 +00:00
ifgre.c - Use size_t instead of int when appropriate; 2009-06-23 23:49:52 +00:00
ifgroup.c Default to AF_LOCAL instead of AF_INET sockets for non-family-specific 2009-03-15 22:33:18 +00:00
ifieee80211.c Add a missing LINE_BREAK() after printing the roaming parameters in 2010-03-23 12:05:25 +00:00
iflagg.c Do no spam the ifconfig output for the aggregated interface with 'laggdev laggX'. 2009-04-30 14:31:52 +00:00
ifmac.c - Use size_t instead of int when appropriate; 2009-06-23 23:49:52 +00:00
ifmedia.c Implementation of the upcoming Wireless Mesh standard, 802.11s, on the 2009-07-11 15:02:45 +00:00
ifpfsync.c Print pfsync interface status if either syncpeer or syncdev is configured. 2006-06-06 11:21:08 +00:00
ifvlan.c Add TSO support on VLAN in fconfig(8). 2010-02-20 23:01:09 +00:00
Makefile Fixed dependencies (make checkdpadd). 2010-02-25 20:24:19 +00:00
regdomain.c ifconfig(8) is documented to take a ISO 3166-1 country code to set the 2009-12-15 20:44:12 +00:00
regdomain.h Regulatory fixups: 2009-02-07 01:12:51 +00:00