diff options
author | np <np@FreeBSD.org> | 2013-01-25 23:58:21 +0000 |
---|---|---|
committer | np <np@FreeBSD.org> | 2013-01-25 23:58:21 +0000 |
commit | 66b6d0e94e64d693c8d4f99162f60fab4f7503a1 (patch) | |
tree | c1b42d134cdb2a9e02cbf3bb349f7b46caf5472d /sys/net/if_llatbl.h | |
parent | 997cb5be94bea808072072335dc18b70b4a729b3 (diff) | |
download | FreeBSD-src-66b6d0e94e64d693c8d4f99162f60fab4f7503a1.zip FreeBSD-src-66b6d0e94e64d693c8d4f99162f60fab4f7503a1.tar.gz |
Move lle_event to if_llatbl.h
lle_event replaced arp_update_event after the ARP rewrite and ended up
in if_ether.h simply because arp_update_event used to be there too.
IPv6 neighbor discovery is going to grow lle_event support and this is a
good time to move it to if_llatbl.h.
The two in-tree consumers of this event - OFED and toecore - are not
affected.
Reviewed by: bz@
Diffstat (limited to 'sys/net/if_llatbl.h')
-rw-r--r-- | sys/net/if_llatbl.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sys/net/if_llatbl.h b/sys/net/if_llatbl.h index 8da08ba..39ecf7b 100644 --- a/sys/net/if_llatbl.h +++ b/sys/net/if_llatbl.h @@ -205,4 +205,14 @@ lla_lookup(struct lltable *llt, u_int flags, const struct sockaddr *l3addr) } int lla_rt_output(struct rt_msghdr *, struct rt_addrinfo *); + +#include <sys/eventhandler.h> +enum { + LLENTRY_RESOLVED, + LLENTRY_TIMEDOUT, + LLENTRY_DELETED, + LLENTRY_EXPIRED, +}; +typedef void (*lle_event_fn)(void *, struct llentry *, int); +EVENTHANDLER_DECLARE(lle_event, lle_event_fn); #endif /* _NET_IF_LLATBL_H_ */ |