freebsd-dev/sbin/ifconfig
Gavin Atkinson a7874572c7 ifconfig(8) is documented to take a ISO 3166-1 country code to set the
regulatory domain with the "country" parameter, but will also take a full
country name.  The man page warns that only the ISO code is unambiguous.
In reality, however, the first match on either would be accepted, leading
to "DE" being interpreted as the "DEBUG" country rather than Germany, and
"MO" selecting Morocco rather than the correct country, Macau.

Fix this by always checking for an ISO CC match first, and only search on
the full country name if that fails.

PR:		bin/140571
Tested by:	Dirk Meyer dirk.meyer dinoex.sub.org
Reviewed by:	sam
Approved by:	ed (mentor)
MFC after:	1 month
2009-12-15 20:44:12 +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 - Use size_t instead of int when appropriate; 2009-06-23 23:49:52 +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 Use afswch->af_other_status for carp_status() and pfsync_status(). 2005-02-22 14:07:47 +00:00
ifclone.c - Use size_t instead of int when appropriate; 2009-06-23 23:49:52 +00:00
ifconfig.8 Revert revision 199201 for now as it has introduced a kernel vulnerability 2009-11-12 19:02:10 +00:00
ifconfig.c Make ``ifconfig -l ether'' only list interfaces that speak Ethernet. 2009-11-25 00:00:57 +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 Update for latest 802.11s changes in meshconf format. 2009-10-12 14:51:19 +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 - Use size_t instead of int when appropriate; 2009-06-23 23:49:52 +00:00
Makefile Improve flexibility of receiving Router Advertisement and 2009-09-12 22:08:20 +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