svn commit: r245924 - in head/sys: net netinet
Navdeep Parhar
np at FreeBSD.org
Fri Jan 25 23:58:22 UTC 2013
Author: np
Date: Fri Jan 25 23:58:21 2013
New Revision: 245924
URL: http://svnweb.freebsd.org/changeset/base/245924
Log:
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@
Modified:
head/sys/net/if_llatbl.h
head/sys/netinet/if_ether.h
Modified: head/sys/net/if_llatbl.h
==============================================================================
--- head/sys/net/if_llatbl.h Fri Jan 25 23:44:02 2013 (r245923)
+++ head/sys/net/if_llatbl.h Fri Jan 25 23:58:21 2013 (r245924)
@@ -205,4 +205,14 @@ lla_lookup(struct lltable *llt, u_int fl
}
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_ */
Modified: head/sys/netinet/if_ether.h
==============================================================================
--- head/sys/netinet/if_ether.h Fri Jan 25 23:44:02 2013 (r245923)
+++ head/sys/netinet/if_ether.h Fri Jan 25 23:58:21 2013 (r245924)
@@ -120,17 +120,6 @@ void arprequest(struct ifnet *, struct i
void arp_ifinit(struct ifnet *, struct ifaddr *);
void arp_ifinit2(struct ifnet *, struct ifaddr *, u_char *);
void arp_ifscrub(struct ifnet *, uint32_t);
-
-#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
#endif
More information about the svn-src-head
mailing list