Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F133161132
D24244.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D24244.diff
View Options
Index: head/sys/netinet/if_ether.c
===================================================================
--- head/sys/netinet/if_ether.c
+++ head/sys/netinet/if_ether.c
@@ -1044,7 +1044,11 @@
(void)memcpy(ar_tha(ah), ar_sha(ah), ah->ar_hln);
(void)memcpy(ar_sha(ah), enaddr, ah->ar_hln);
} else {
- struct llentry *lle = NULL;
+ /*
+ * Destination address is not ours. Check if
+ * proxyarp entry exists or proxyarp is turned on globally.
+ */
+ struct llentry *lle;
sin.sin_addr = itaddr;
lle = lla_lookup(LLTABLE(ifp), 0, (struct sockaddr *)&sin);
@@ -1061,8 +1065,8 @@
if (!V_arp_proxyall)
goto drop;
- /* XXX MRT use table 0 for arp reply */
- if (fib4_lookup_nh_basic(0, itaddr, 0, 0, &nh4) != 0)
+ if (fib4_lookup_nh_basic(ifp->if_fib, itaddr, 0, 0,
+ &nh4) != 0)
goto drop;
/*
@@ -1083,8 +1087,8 @@
* wrong network.
*/
- /* XXX MRT use table 0 for arp checks */
- if (fib4_lookup_nh_basic(0, isaddr, 0, 0, &nh4) != 0)
+ if (fib4_lookup_nh_basic(ifp->if_fib, isaddr, 0, 0,
+ &nh4) != 0)
goto drop;
if (nh4.nh_ifp != ifp) {
ARP_LOG(LOG_INFO, "proxy: ignoring request"
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Oct 24, 1:03 PM (11 h, 58 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
24132662
Default Alt Text
D24244.diff (1 KB)
Attached To
Mode
D24244: Use interface fib for proxyarp checks.
Attached
Detach File
Event Timeline
Log In to Comment