Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/sbin/ifconfig



Module Name:    src
Committed By:   dyoung
Date:           Fri Aug  1 22:44:17 UTC 2008

Modified Files:
        src/sbin/ifconfig: af_atalk.c

Log Message:
is@ pointed out that I set the phase and range of a sockaddr_at
without subsequently doing anything with it, so commit_address()
works with an address with phase == 0.  phase == 0 is not allowed,
hence

random84# ifconfig nfe0 atalk 3.14
ifconfig: SIOCAIFADDR: Invalid argument

Solution: copy the new sockaddr_at to a temporary input environment,
and pass that environment to commit_address().  I may as well copy
the new sockaddr_at to the output environment, while I am at it.


To generate a diff of this commit:
cvs rdiff -r1.14 -r1.15 src/sbin/ifconfig/af_atalk.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



Home | Main Index | Thread Index | Old Index