freebsd-skq/sys/net
wpaul 82e4a377a3 Implement SIOCSIFLLADDR, which allows you to change the link-level
address on an interface. This basically allows you to do what my
little setmac module/utility does via ifconfig. This involves the
following changes:

socket.h: define SIOCSIFLLADDR
if.c: add support for SIOCSIFLLADDR, which resets the values in
      the arpcom struct and sockaddr_dl for the specified interface.
      Note that if the interface is already up, we need to down/up
      it in order to program the underlying hardware's receive filter.
ifconfig.c: add lladdr command
ifconfig.8: document lladdr command

You can now force the MAC address on any ethernet interface to be
whatever you want. (The change is not sticky across reboots of course:
we don't actually reprogram the EEPROM or anything.) Actually, you
can reprogram the MAC address on other kinds of interfaces too; this
shouldn't be ethernet-specific (though at the moment it's limited to
6 bytes of address data).

Nobody ran up to me and said "this is the politically correct way to
do this!" so I don't want to hear any complaints from people who think
I could have done it more elegantly. Consider yourselves lucky I didn't
do it by having ifconfig tread all over /dev/kmem.
2000-06-16 20:14:43 +00:00
..
bpf_compat.h
bpf_filter.c
bpf.c
bpf.h
bpfdesc.h
bridge.c
bridge.h
bsd_comp.c
ethernet.h
fddi.h
hostcache.c
hostcache.h
if_arp.h
if_atm.h
if_atmsubr.c
if_disc.c
if_dl.h
if_ef.c
if_ethersubr.c Do not perform any opeartion with mbuf after it placed into 2000-06-14 05:56:53 +00:00
if_faith.c
if_fddisubr.c Do not perform any opeartion with mbuf after it placed into 2000-06-14 05:56:53 +00:00
if_gif.c
if_gif.h
if_ieee80211.h
if_iso88025subr.c Do not perform any opeartion with mbuf after it placed into 2000-06-14 05:56:53 +00:00
if_llc.h
if_loop.c
if_media.c
if_media.h
if_mib.c
if_mib.h
if_ppp.c
if_ppp.h
if_pppvar.h
if_sl.c Unused include: #include "sl.h" - NSL is no longer used. 2000-06-10 11:21:30 +00:00
if_slvar.h
if_sppp.h
if_spppsubr.c
if_tun.c
if_tun.h
if_tunvar.h
if_types.h
if_var.h
if_vlan_var.h
if_vlan.c
if.c Implement SIOCSIFLLADDR, which allows you to change the link-level 2000-06-16 20:14:43 +00:00
if.h
intrq.c
intrq.h
iso88025.h
net_osdep.c
net_osdep.h
netisr.h
pfil.9
pfil.c
pfil.h
pfkeyv2.h
ppp_comp.h
ppp_deflate.c
ppp_defs.h
ppp_tty.c
radix.c
radix.h
raw_cb.c
raw_cb.h
raw_usrreq.c
route.c
route.h
rtsock.c
slcompress.c
slcompress.h
slip.h
zlib.c
zlib.h