freebsd-skq/sbin/ifconfig
Pedro F. Giffuni de497205b0 ifconfig: prevent some improbable signed integer overflows.
ic_nchans, from struct:ieee80211req_chaninfo, is an unsigned int.
Use an unsigned index to prevent overflowing the index.

Adopt unsigned integers in other cases where it is useful
to be aware of the unsigned quantities and there is no
risk of the values being negative.

MFC after:	1 week
2016-04-25 00:41:23 +00:00
..
tests MFH 2016-03-10 21:16:01 +00:00
af_inet6.c Replace N #defines with nitems to simplify ifconfig code slightly 2015-09-27 07:51:18 +00:00
af_inet.c User NULL instead of 0 for pointers. 2016-04-18 14:12:42 +00:00
af_link.c
af_nd6.c Stop including if_var.h from userland. 2015-04-06 09:42:23 +00:00
carp.c Replace N #defines with nitems to simplify ifconfig code slightly 2015-09-27 07:51:18 +00:00
ifbridge.c Use nitems() from sys/param.h. 2016-04-19 04:42:34 +00:00
ifclone.c ifconfig(8): can't use 'name' or 'description' when creating interface with auto numbering 2016-02-20 11:36:35 +00:00
ifconfig.8 Add sysctl to control LACP strict compliance default 2015-11-06 15:33:27 +00:00
ifconfig.c ifconfig(8): can't use 'name' or 'description' when creating interface with auto numbering 2016-02-20 11:36:35 +00:00
ifconfig.h ifconfig(8): can't use 'name' or 'description' when creating interface with auto numbering 2016-02-20 11:36:35 +00:00
iffib.c Replace N #defines with nitems to simplify ifconfig code slightly 2015-09-27 07:51:18 +00:00
ifgif.c - Remove GIF_{SEND,ACCEPT}_REVETHIP. 2015-09-10 05:59:39 +00:00
ifgre.c Replace N #defines with nitems to simplify ifconfig code slightly 2015-09-27 07:51:18 +00:00
ifgroup.c Replace N #defines with nitems to simplify ifconfig code slightly 2015-09-27 07:51:18 +00:00
ifieee80211.c ifconfig: prevent some improbable signed integer overflows. 2016-04-25 00:41:23 +00:00
iflagg.c Use nitems() from sys/param.h. 2016-04-19 04:42:34 +00:00
ifmac.c Replace N #defines with nitems to simplify ifconfig code slightly 2015-09-27 07:51:18 +00:00
ifmedia.c Replace N #defines with nitems to simplify ifconfig code slightly 2015-09-27 07:51:18 +00:00
ifpfsync.c Replace N #defines with nitems to simplify ifconfig code slightly 2015-09-27 07:51:18 +00:00
ifvlan.c Replace N #defines with nitems to simplify ifconfig code slightly 2015-09-27 07:51:18 +00:00
ifvxlan.c Replace N #defines with nitems to simplify ifconfig code slightly 2015-09-27 07:51:18 +00:00
Makefile Explicitly add more files to the 'runtime' package. 2016-02-09 20:19:31 +00:00
Makefile.depend META MODE: Update dependencies with 'the-lot' and add missing directories. 2015-12-01 05:23:19 +00:00
sfp.c Cleanup unnecessary semicolons from utilities we all love. 2016-04-15 22:31:22 +00:00