diff options
Diffstat (limited to 'sys/net/if.h')
-rw-r--r-- | sys/net/if.h | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/sys/net/if.h b/sys/net/if.h index 875355b8916..3025d26a0ef 100644 --- a/sys/net/if.h +++ b/sys/net/if.h @@ -1,4 +1,4 @@ -/* $OpenBSD: if.h,v 1.48 2003/12/16 20:33:25 markus Exp $ */ +/* $OpenBSD: if.h,v 1.49 2004/01/15 10:47:55 markus Exp $ */ /* $NetBSD: if.h,v 1.23 1996/05/07 02:40:27 thorpej Exp $ */ /* @@ -357,6 +357,22 @@ struct ifa_msghdr { int ifam_metric; /* value of ifa_metric */ }; + +/* + * Message format announcing the arrival or departure of a network interface. + */ +struct if_announcemsghdr { + u_short ifan_msglen; /* to skip over non-understood messages */ + u_char ifan_version; /* future binary compatibility */ + u_char ifan_type; /* message type */ + u_short ifan_index; /* index for associated ifp */ + char ifan_name[IFNAMSIZ]; /* if name, e.g. "en0" */ + u_short ifan_what; /* what type of announcement */ +}; + +#define IFAN_ARRIVAL 0 /* interface arrival */ +#define IFAN_DEPARTURE 1 /* interface departure */ + /* * Interface request structure used for socket * ioctl's. All interface ioctl's must have parameter |