mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-12-30 23:48:09 +01:00
a309172130
- The -a flag now works just as it does in SunOS: '-a' is actually handled like a wildcard for all interfaces. 'ifconfig -a' displays the status of all interfaces, 'ifconfig -a netmask 0xffffff00' sets the netmask of all interfaces, and so forth. I don't know if many people really need to be able to set the netmasks of all interfaces at once, but the SunOS ifconfig seems to allow this, so there you have it. - An 'ether_status' function has been added to display the ethernet address of all ethernet interfaces. Again, as in SunOS, you must be root in order for this to work. The ethernet address is read from /dev/kmem using kvm_open() and kvm_read(), much in the same was as it's done with netstat. If you choose to install ifconfig set-gid kmem then normal users will be able to see the ethernet address as well, though this may not be desireable. This feature requires a small change to the ifconfig Makefile: you need to link with -lkvm in order to use the kvm_*() functions. Submitted by: wpaul |
||
---|---|---|
.. | ||
adjkerntz | ||
badsect | ||
bsdlabel | ||
clri | ||
comcontrol | ||
cxconfig | ||
disklabel | ||
dmesg | ||
dump | ||
dumpfs | ||
dumplfs | ||
fastboot | ||
fdisk | ||
fsck | ||
fsck_ffs | ||
fsck_ifs | ||
ft | ||
i386 | ||
ifconfig | ||
init | ||
ip_mroute_mod | ||
ipfw | ||
ldconfig | ||
md5 | ||
mknod | ||
modload | ||
modunload | ||
mount | ||
mount_cd9660 | ||
mount_fdesc | ||
mount_ifs | ||
mount_kernfs | ||
mount_lfs | ||
mount_msdos | ||
mount_msdosfs | ||
mount_nfs | ||
mount_null | ||
mount_nullfs | ||
mount_portal | ||
mount_portalfs | ||
mount_procfs | ||
mount_umap | ||
mount_umapfs | ||
mount_union | ||
mount_unionfs | ||
mountd | ||
newfs | ||
newlfs | ||
nfsd | ||
nfsiod | ||
nologin | ||
ping | ||
quotacheck | ||
rdisc | ||
reboot | ||
restore | ||
route | ||
savecore | ||
scsiformat | ||
shutdown | ||
slattach | ||
startslip | ||
swapon | ||
sysctl | ||
sysinstall | ||
tunefs | ||
umount | ||
DISCLAIMER | ||
Makefile | ||
Makefile.inc |