Module Name: src Committed By: dyoung Date: Thu Jul 1 16:44:05 UTC 2010
Modified Files: src/sbin/ifconfig: ieee80211.c media.c parse.c parse.h util.c util.h Log Message: Add to the string parse object (pstr), and its constructors, a flag that tells whether it should detect and convert to binary a hexadecimal octet string of the form 0x0123ABab, or leave those strings undecoded. If the argument for a 'media', 'mediamode', 'mediaopt', '-mediaopt', 'nwkey', or 'bssid' keyword is a hexadecimal octet string, do not detect and decode it. (Note that setifnwkey decodes hexadecimal strings on its own.) This fixes a bug noticed by Jim Miller where the trailing zero-octets were discarded from hexadecimal octet-string arguments for 'nwkey'. To generate a diff of this commit: cvs rdiff -u -r1.23 -r1.24 src/sbin/ifconfig/ieee80211.c cvs rdiff -u -r1.3 -r1.4 src/sbin/ifconfig/media.c cvs rdiff -u -r1.15 -r1.16 src/sbin/ifconfig/parse.c cvs rdiff -u -r1.6 -r1.7 src/sbin/ifconfig/parse.h cvs rdiff -u -r1.14 -r1.15 src/sbin/ifconfig/util.c cvs rdiff -u -r1.8 -r1.9 src/sbin/ifconfig/util.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.