summaryrefslogtreecommitdiff
path: root/sys/net/if.h
diff options
context:
space:
mode:
authorMarco Pfatschbacher <mpf@cvs.openbsd.org>2005-04-20 23:00:42 +0000
committerMarco Pfatschbacher <mpf@cvs.openbsd.org>2005-04-20 23:00:42 +0000
commit3040ff520d8c53f7587470475ccf7770c5ab6eed (patch)
tree3dff2890b93a4c3db99d28f47db21bfd3ccb3abb /sys/net/if.h
parent5dba608b70a7ae8016a0e5fb77bd200394dc1eee (diff)
Introduce if_linkstatehooks.
This converts if_link_state_change() to a generic usable callback with dohooks(). OK henning@, camield@ Tested by camield@ and Alexey E. Suslikov
Diffstat (limited to 'sys/net/if.h')
-rw-r--r--sys/net/if.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/net/if.h b/sys/net/if.h
index 31df9263080..ef402f7a1fb 100644
--- a/sys/net/if.h
+++ b/sys/net/if.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: if.h,v 1.64 2005/02/07 15:00:17 mcbride Exp $ */
+/* $OpenBSD: if.h,v 1.65 2005/04/20 23:00:40 mpf Exp $ */
/* $NetBSD: if.h,v 1.23 1996/05/07 02:40:27 thorpej Exp $ */
/*
@@ -176,6 +176,7 @@ struct ifnet { /* and the entries */
TAILQ_HEAD(, ifaddr) if_addrlist; /* linked list of addresses per if */
TAILQ_HEAD(, ifg_list) if_groups; /* linked list of groups per if */
struct hook_desc_head *if_addrhooks; /* address change callbacks */
+ struct hook_desc_head *if_linkstatehooks; /* link change callbacks */
char if_xname[IFNAMSIZ]; /* external name (name + unit) */
int if_pcount; /* number of promiscuous listeners */
caddr_t if_bpf; /* packet filter structure */