1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-24 11:29:10 +00:00
freebsd/sbin
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
..
adjkerntz Remove single-space hard sentence breaks. These degrade the quality 2000-03-01 11:27:47 +00:00
atm Remove unused #include. 2000-05-01 19:39:36 +00:00
badsect Remove single-space hard sentence breaks. These degrade the quality 2000-03-01 11:27:47 +00:00
bsdlabel Add '-DPC98' to CFLAGS if MACHINE == pc98. 2000-05-09 13:46:14 +00:00
camcontrol Eliminate the default device name (da) and unit number (0) in camcontrol. 2000-06-04 02:43:55 +00:00
ccdconfig
clri
comcontrol Remove outdated BUGS section. We'll never rename comcontrol to siocontrol. 2000-05-04 16:48:33 +00:00
cxconfig
dhclient
disklabel Add '-DPC98' to CFLAGS if MACHINE == pc98. 2000-05-09 13:46:14 +00:00
dmesg
dump Update device name. 2000-05-07 09:27:53 +00:00
dumpfs
dumpon Remove unused #include. 2000-05-01 19:39:36 +00:00
fdisk 0x39 == plan9 2000-06-12 09:08:40 +00:00
fdisk_pc98 Sync with sbin/i386/fdisk/fdisk.c revision 1.37. 2000-06-05 13:28:49 +00:00
fsck
fsck_ffs
fsck_ifs
fsdb Remove unused includes. 2000-05-01 20:01:16 +00:00
fsirand Remove unused include. 2000-05-01 20:20:05 +00:00
i386 0x39 == plan9 2000-06-12 09:08:40 +00:00
ifconfig Implement SIOCSIFLLADDR, which allows you to change the link-level 2000-06-16 20:14:43 +00:00
init Add MLINK init.8 --> securelevel.8 2000-06-09 09:40:34 +00:00
ip6fw mdoc(7) style fixes and cleanup 2000-05-04 17:34:31 +00:00
ipf add common.c to SRCS to fix compile problems 2000-05-24 20:04:41 +00:00
ipfstat add common.c to SRCS to fix compile problems 2000-05-24 20:04:41 +00:00
ipfw Fix behaviour of "ipfw pipe show" -- previous code gave 2000-06-14 10:07:22 +00:00
ipmon
ipnat add common.c to SRCS to fix compile problems 2000-05-24 20:04:41 +00:00
kget Now that we have uc_device.h, use that instead of hard-coding struct 2000-03-24 21:39:09 +00:00
kldload
kldstat
kldunload
ldconfig Remove more single-space hard sentence breaks. 2000-03-06 09:45:37 +00:00
md5
mknod Spelling fix. 2000-03-24 01:22:53 +00:00
mount Removed xref to mount_lfs, this died in 2.mumble. 2000-04-30 22:08:13 +00:00
mount_cd9660
mount_ext2fs
mount_hpfs
mount_ifs Removed xref to mount_lfs, this died in 2.mumble. 2000-04-30 22:08:13 +00:00
mount_msdos Remove single-space hard sentence breaks. These degrade the quality 2000-03-01 11:27:47 +00:00
mount_msdosfs Remove single-space hard sentence breaks. These degrade the quality 2000-03-01 11:27:47 +00:00
mount_nfs Fix memory leak in mount_nfs's background (-b) mode which occurs when 2000-06-11 05:19:58 +00:00
mount_ntfs Remove single-space hard sentence breaks. These degrade the quality 2000-03-01 11:27:47 +00:00
mount_null Fix a bunch of typos. 2000-05-15 14:55:56 +00:00
mount_nullfs Fix a bunch of typos. 2000-05-15 14:55:56 +00:00
mount_nwfs Pass timezone information to an nwfs mount. 2000-04-05 10:48:53 +00:00
mount_portal Remove single-space hard sentence breaks. These degrade the quality 2000-03-01 11:27:47 +00:00
mount_portalfs Remove single-space hard sentence breaks. These degrade the quality 2000-03-01 11:27:47 +00:00
mount_std Mention linprocfs. 2000-03-25 13:46:16 +00:00
mount_umap
mount_umapfs
mount_union
mount_unionfs
mountd Correct an xref. 2000-05-05 02:25:19 +00:00
natd Remove unused parameter. 2000-06-16 09:41:57 +00:00
newfs Don't try to do anything with the /dev/rXXX device. 2000-05-31 01:00:51 +00:00
newfs_msdos Update device names in examples. 2000-05-07 09:08:31 +00:00
nextboot Remove single-space hard sentence breaks. These degrade the quality 2000-03-01 11:27:47 +00:00
nfsd Remove single-space hard sentence breaks. These degrade the quality 2000-03-01 11:27:47 +00:00
nfsiod
nologin
nos-tun Fix occurences of nos_tun to nos-tun, this improves internal 2000-06-09 06:45:18 +00:00
pc98 Sync with sbin/i386/fdisk/fdisk.c revision 1.37. 2000-06-05 13:28:49 +00:00
ping Use CMSG_LEN() to compute ping SCM_TIMESTAMP cmsg_len. 2000-03-14 17:37:19 +00:00
ping6 Fix typo 2000-05-06 14:20:07 +00:00
quotacheck Remove single-space hard sentence breaks. These degrade the quality 2000-03-01 11:27:47 +00:00
reboot .Xr boot0cfg 8 , 2000-05-13 14:41:04 +00:00
restore Update references to disk and tape devices. 2000-05-07 09:16:56 +00:00
route Clear sin6_scope_id before passing routes into kernel, becaues kernel 2000-03-11 20:52:01 +00:00
routed Fix memory leak when route addition fails. 2000-06-02 21:19:43 +00:00
rtsol
savecore Tidy up the offset calculations. 2000-05-09 22:20:14 +00:00
setkey Typo: "ealgo" -> "aalgo" 2000-05-15 14:16:30 +00:00
shutdown
slattach Remove single-space hard sentence breaks. These degrade the quality 2000-03-01 11:27:47 +00:00
spppcontrol Supply only one author name per instance of %A, as per mdoc.samples(7). 2000-05-10 09:49:04 +00:00
startslip Fixes a potential buffer overflow with the pid filename. 2000-04-30 21:04:36 +00:00
swapon Add include of errno.h where needed, remove extern int errno where not. 2000-04-14 06:15:01 +00:00
sysctl Handle minors like ls(1) does it. 2000-06-10 19:55:39 +00:00
tunefs Open the device read-only initially and re-open read-write if necessary 2000-03-14 07:44:32 +00:00
umount
vinum Clarify which bit of the daemon config disables configuration saves. 2000-06-08 07:27:35 +00:00
Makefile Activate the pc98 directory. 2000-03-18 16:49:22 +00:00
Makefile.inc