summaryrefslogtreecommitdiffstats
path: root/sys/net
diff options
context:
space:
mode:
authorglebius <glebius@FreeBSD.org>2005-03-01 10:59:14 +0000
committerglebius <glebius@FreeBSD.org>2005-03-01 10:59:14 +0000
commitea3bf9bbdddea0177c61e7e86335bf19e319dc7d (patch)
tree04e8269570fec92588a7ceea508b729ed365a388 /sys/net
parent2da58c223380e951aafd40287fa3e3890feb2acc (diff)
downloadFreeBSD-src-ea3bf9bbdddea0177c61e7e86335bf19e319dc7d.zip
FreeBSD-src-ea3bf9bbdddea0177c61e7e86335bf19e319dc7d.tar.gz
Revert change to struct ifnet. Use ifnet pointer in softc. Embedding
ifnet into smth will soon be removed. Requested by: brooks
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/if_var.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/sys/net/if_var.h b/sys/net/if_var.h
index 7c5cb8b..78eea2c 100644
--- a/sys/net/if_var.h
+++ b/sys/net/if_var.h
@@ -147,12 +147,7 @@ struct ifnet {
*/
struct knlist if_klist; /* events attached to this if */
int if_pcount; /* number of promiscuous listeners */
- union {
- struct carp_if *carp_s; /* carp structure (used by !carp ifs) */
- struct ifnet *carp_d; /* ptr to carpdev (used by carp ifs) */
- } if_carp_ptr;
-#define if_carp if_carp_ptr.carp_s
-#define if_carpdev if_carp_ptr.carp_d
+ struct carp_if *if_carp; /* carp interface structure */
struct bpf_if *if_bpf; /* packet filter structure */
u_short if_index; /* numeric abbreviation for this if */
short if_timer; /* time 'til if_watchdog called */
OpenPOWER on IntegriCloud