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
..
1999-12-29 04:46:21 +00:00
1999-12-29 04:46:21 +00:00
1999-12-29 04:46:21 +00:00
2000-01-28 15:22:51 +00:00
2000-06-09 16:04:30 +00:00
2000-05-26 02:09:24 +00:00
2000-06-02 09:27:48 +00:00
2000-05-26 02:09:24 +00:00
1999-08-28 01:08:13 +00:00
2000-06-16 08:48:51 +00:00
2000-06-14 18:48:39 +00:00
2000-05-26 02:09:24 +00:00
2000-05-26 02:09:24 +00:00
2000-05-26 02:09:24 +00:00
2000-06-07 03:40:55 +00:00
2000-01-16 09:25:10 +00:00
2000-03-18 22:26:54 +00:00
1999-12-29 04:46:21 +00:00
2000-01-06 22:46:20 +00:00
1999-12-29 04:46:21 +00:00
1999-12-29 04:46:21 +00:00
2000-05-26 02:09:24 +00:00
2000-01-11 14:54:01 +00:00
2000-04-27 13:34:32 +00:00
2000-01-03 07:17:01 +00:00
1999-12-29 04:46:21 +00:00
2000-05-01 20:32:07 +00:00
1999-08-28 01:08:13 +00:00
2000-05-26 02:09:24 +00:00
1999-08-28 01:08:13 +00:00
1999-12-29 04:46:21 +00:00
2000-06-15 20:30:53 +00:00
2000-04-30 02:33:40 +00:00
2000-04-30 02:33:40 +00:00
2000-04-30 02:33:40 +00:00
2000-04-30 06:47:24 +00:00
1999-12-29 04:46:21 +00:00
1999-12-29 04:46:21 +00:00
1999-12-29 04:46:21 +00:00
2000-05-12 03:36:02 +00:00
1999-08-28 01:08:13 +00:00
1999-08-28 01:08:13 +00:00
2000-04-18 02:39:26 +00:00
1999-08-28 01:08:13 +00:00
2000-05-02 06:02:11 +00:00
2000-05-26 02:09:24 +00:00
2000-05-26 02:09:24 +00:00
2000-05-26 02:09:24 +00:00
1999-12-29 04:46:21 +00:00
2000-01-19 06:07:34 +00:00
2000-04-27 13:34:32 +00:00
2000-04-22 15:22:31 +00:00
1999-12-29 04:46:21 +00:00
2000-05-26 02:09:24 +00:00
2000-06-14 18:38:44 +00:00
1999-12-07 22:25:28 +00:00
1999-08-28 01:08:13 +00:00
1999-12-29 04:46:21 +00:00
2000-04-28 08:53:23 +00:00
2000-04-26 20:58:40 +00:00
1999-12-29 04:46:21 +00:00
1999-08-28 01:08:13 +00:00
1999-08-28 01:08:13 +00:00
1999-12-29 04:46:21 +00:00
2000-04-04 16:46:19 +00:00
1999-08-28 01:08:13 +00:00
1999-12-29 04:46:21 +00:00
1999-12-29 04:46:21 +00:00
1999-12-29 04:46:21 +00:00
2000-06-04 04:28:31 +00:00
1999-12-05 20:02:19 +00:00
1999-12-29 04:46:21 +00:00
2000-05-26 02:09:24 +00:00
2000-05-11 17:10:22 +00:00
2000-01-07 08:36:44 +00:00
2000-03-28 07:16:37 +00:00
1999-12-10 17:38:41 +00:00
2000-05-26 02:09:24 +00:00
1999-08-27 23:45:13 +00:00
1999-08-27 23:45:13 +00:00
2000-05-13 04:38:50 +00:00
2000-05-26 02:09:24 +00:00
1999-12-11 16:13:02 +00:00
2000-05-26 02:09:24 +00:00
1999-12-11 16:13:02 +00:00
2000-06-14 18:31:42 +00:00
2000-06-10 18:00:27 +00:00
1999-12-29 04:46:21 +00:00
1999-09-17 05:34:00 +00:00
1999-12-29 04:46:21 +00:00
2000-02-28 04:10:35 +00:00
2000-04-29 13:19:31 +00:00
2000-06-16 13:00:33 +00:00
2000-03-18 15:21:40 +00:00
2000-05-01 13:33:56 +00:00
2000-01-29 15:29:11 +00:00
2000-04-26 11:34:52 +00:00
2000-01-08 16:20:06 +00:00
1999-08-27 23:45:13 +00:00
2000-06-10 16:53:54 +00:00
1999-12-08 17:44:04 +00:00
1999-08-28 01:08:13 +00:00
1999-12-29 04:46:21 +00:00
1999-12-29 04:46:21 +00:00
1999-12-27 10:22:09 +00:00
2000-05-26 02:09:24 +00:00
1999-08-28 01:08:13 +00:00
1999-12-29 04:46:21 +00:00
1999-08-28 01:08:13 +00:00
1999-12-29 04:46:21 +00:00
2000-05-26 02:09:24 +00:00
2000-04-30 05:16:24 +00:00
1999-08-28 01:08:13 +00:00
2000-04-30 18:33:43 +00:00
2000-01-28 20:40:29 +00:00
2000-05-26 02:09:24 +00:00
1999-12-29 04:46:21 +00:00
2000-04-16 18:53:38 +00:00
2000-04-16 18:53:38 +00:00
2000-05-01 13:33:56 +00:00
2000-01-20 07:55:42 +00:00
1999-12-29 04:46:21 +00:00
1999-12-29 04:46:21 +00:00
2000-03-28 18:06:49 +00:00
2000-05-31 21:37:28 +00:00
1999-12-29 04:46:21 +00:00
2000-06-15 18:18:43 +00:00
2000-05-26 02:09:24 +00:00
2000-06-16 20:14:43 +00:00
1999-12-29 04:46:21 +00:00
1999-12-29 04:46:21 +00:00
2000-06-15 23:27:18 +00:00
2000-06-15 23:27:18 +00:00
2000-06-15 23:27:18 +00:00
2000-05-26 02:09:24 +00:00
2000-04-26 20:58:40 +00:00
1999-08-28 01:08:13 +00:00
1999-12-29 04:46:21 +00:00
2000-06-15 23:27:18 +00:00
2000-06-05 18:30:55 +00:00
2000-06-09 22:32:36 +00:00
1999-12-29 04:46:21 +00:00
2000-03-20 14:09:06 +00:00
1999-08-28 01:08:13 +00:00
1999-12-29 04:46:21 +00:00
1999-08-28 01:08:13 +00:00
1999-12-29 04:46:21 +00:00
2000-03-20 14:09:06 +00:00
1999-12-29 04:46:21 +00:00
1999-08-28 01:08:13 +00:00
2000-05-26 02:09:24 +00:00
1999-08-28 01:08:13 +00:00
2000-01-29 16:47:35 +00:00
1999-08-28 01:08:13 +00:00
1999-08-28 01:08:13 +00:00
2000-02-20 15:01:37 +00:00
1999-10-11 20:33:17 +00:00
1999-12-29 04:46:21 +00:00
1999-12-29 04:46:21 +00:00
1999-12-29 04:46:21 +00:00
2000-04-22 15:22:31 +00:00
2000-05-26 02:09:24 +00:00
1999-12-29 04:46:21 +00:00
1999-12-29 04:46:21 +00:00
1999-12-29 04:46:21 +00:00
1999-09-17 05:34:00 +00:00
2000-05-26 02:09:24 +00:00
1999-12-29 04:46:21 +00:00
1999-08-28 01:08:13 +00:00