diff options
author | brooks <brooks@FreeBSD.org> | 2009-06-29 19:46:29 +0000 |
---|---|---|
committer | brooks <brooks@FreeBSD.org> | 2009-06-29 19:46:29 +0000 |
commit | 0cabaf8791593503b5c5aee1394849a275c48ef9 (patch) | |
tree | bafd4643a36f16f38324f5cdfeb98860cd7c22a0 /sys/net/if_var.h | |
parent | 8eb4412c3f17561dfaafef706ac9142086068e62 (diff) | |
download | FreeBSD-src-0cabaf8791593503b5c5aee1394849a275c48ef9.zip FreeBSD-src-0cabaf8791593503b5c5aee1394849a275c48ef9.tar.gz |
Remove support for the /dev/net/* per-interface devices. They serve
little purpose and are unused in the base system.
The IOCTL functionality is entirely duplicated and routing sockets
provide a richer interface than the kqueue functionality.
Further, it is not practical for these devices to be made sensible in
the face of VIMAGE.
Bump __FreeBSD_version on the off chance that there is any code out
there that actually uses this stuff.
Reviewed by: rwatson
Discussed with: bz, zec
Approved by: re@ (kensmith)
Diffstat (limited to 'sys/net/if_var.h')
-rw-r--r-- | sys/net/if_var.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/sys/net/if_var.h b/sys/net/if_var.h index df09035..a995dfd 100644 --- a/sys/net/if_var.h +++ b/sys/net/if_var.h @@ -135,7 +135,6 @@ struct ifnet { * However, access to the AF_LINK address through this * field is deprecated. Use if_addr or ifaddr_byindex() instead. */ - struct knlist if_klist; /* events attached to this if */ int if_pcount; /* number of promiscuous listeners */ struct carp_if *if_carp; /* carp interface structure */ struct bpf_if *if_bpf; /* packet filter structure */ @@ -764,11 +763,6 @@ extern struct rwlock ifnet_lock; #define IFNET_RLOCK() rw_rlock(&ifnet_lock) #define IFNET_RUNLOCK() rw_runlock(&ifnet_lock) -struct ifindex_entry { - struct ifnet *ife_ifnet; - struct cdev *ife_dev; -}; - /* * Look up an ifnet given its index; the _ref variant also acquires a * reference that must be freed using if_rele(). It is almost always a bug @@ -784,7 +778,6 @@ struct ifnet *ifnet_byindex_ref(u_short idx); * it to traverse the list of addresses associated to the interface. */ struct ifaddr *ifaddr_byindex(u_short idx); -struct cdev *ifdev_byindex(u_short idx); #ifdef VIMAGE_GLOBALS extern struct ifnethead ifnet; |