Bill Paul b106252c19 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
..
2000-05-01 19:39:36 +00:00
2000-05-07 09:27:53 +00:00
2000-05-01 19:39:36 +00:00
2000-06-12 09:08:40 +00:00
2000-05-01 20:01:16 +00:00
2000-05-01 20:20:05 +00:00
2000-06-12 09:08:40 +00:00
2000-06-09 09:40:34 +00:00
2000-05-04 17:34:31 +00:00
2000-03-24 01:22:53 +00:00
2000-05-15 14:55:56 +00:00
2000-05-15 14:55:56 +00:00
2000-03-25 13:46:16 +00:00
2000-05-05 02:25:19 +00:00
2000-06-16 09:41:57 +00:00
2000-05-06 14:20:07 +00:00
2000-05-13 14:41:04 +00:00
2000-05-09 22:20:14 +00:00
2000-05-15 14:16:30 +00:00
2000-06-10 19:55:39 +00:00