Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F154066154
D17007.id47629.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
D17007.id47629.diff
View Options
Index: head/sys/netinet6/in6_pcb.c
===================================================================
--- head/sys/netinet6/in6_pcb.c
+++ head/sys/netinet6/in6_pcb.c
@@ -846,13 +846,10 @@
* (by a redirect), time to try a default gateway again.
*/
void
-in6_losing(struct inpcb *in6p)
+in6_losing(struct inpcb *inp)
{
- RO_RTFREE(&in6p->inp_route6);
- if (in6p->inp_route6.ro_lle)
- LLE_FREE(in6p->inp_route6.ro_lle); /* zeros ro_lle */
- return;
+ RO_INVALIDATE_CACHE(&inp->inp_route6);
}
/*
@@ -860,12 +857,10 @@
* and allocate a (hopefully) better one.
*/
struct inpcb *
-in6_rtchange(struct inpcb *inp, int errno)
+in6_rtchange(struct inpcb *inp, int errno __unused)
{
- RO_RTFREE(&in6p->inp_route6);
- if (inp->inp_route6.ro_lle)
- LLE_FREE(inp->inp_route6.ro_lle); /* zeros ro_lle */
+ RO_INVALIDATE_CACHE(&inp->inp_route6);
return inp;
}
Index: head/sys/netinet6/ip6_output.c
===================================================================
--- head/sys/netinet6/ip6_output.c
+++ head/sys/netinet6/ip6_output.c
@@ -804,22 +804,16 @@
error = netisr_queue(NETISR_IPV6, m);
goto done;
} else {
- RO_RTFREE(ro);
+ RO_INVALIDATE_CACHE(ro);
needfiblookup = 1; /* Redo the routing table lookup. */
- if (ro->ro_lle)
- LLE_FREE(ro->ro_lle); /* zeros ro_lle */
- ro->ro_lle = NULL;
}
}
/* See if fib was changed by packet filter. */
if (fibnum != M_GETFIB(m)) {
m->m_flags |= M_SKIP_FIREWALL;
fibnum = M_GETFIB(m);
- RO_RTFREE(ro);
+ RO_INVALIDATE_CACHE(ro);
needfiblookup = 1;
- if (ro->ro_lle)
- LLE_FREE(ro->ro_lle); /* zeros ro_lle */
- ro->ro_lle = NULL;
}
if (needfiblookup)
goto again;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Apr 26, 9:46 PM (16 h, 27 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
32153670
Default Alt Text
D17007.id47629.diff (1 KB)
Attached To
Mode
D17007: Appl RO_INVALIDATE_CACHE() to more netinet6 code
Attached
Detach File
Event Timeline
Log In to Comment