Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F169960677
D22865.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
D22865.id.diff
View Options
Index: head/sys/netinet/icmp6.h
===================================================================
--- head/sys/netinet/icmp6.h
+++ head/sys/netinet/icmp6.h
@@ -687,8 +687,6 @@
#define ICMPV6CTL_NODEINFO_OLDMCPREFIX 25
#define ICMPV6CTL_MAXID 26
-#define RTF_PROBEMTU RTF_PROTO1
-
#ifdef _KERNEL
# ifdef __STDC__
struct rtentry;
Index: head/sys/netinet6/in6_rmx.c
===================================================================
--- head/sys/netinet6/in6_rmx.c
+++ head/sys/netinet6/in6_rmx.c
@@ -153,64 +153,8 @@
}
/*
- * Age old PMTUs.
- */
-struct mtuex_arg {
- struct rib_head *rnh;
- time_t nextstop;
-};
-VNET_DEFINE_STATIC(struct callout, rtq_mtutimer);
-#define V_rtq_mtutimer VNET(rtq_mtutimer)
-
-static int
-in6_mtuexpire(struct rtentry *rt, void *rock)
-{
- struct mtuex_arg *ap = rock;
-
- if (rt->rt_expire && !(rt->rt_flags & RTF_PROBEMTU)) {
- if (rt->rt_expire <= time_uptime) {
- rt->rt_flags |= RTF_PROBEMTU;
- } else {
- ap->nextstop = lmin(ap->nextstop, rt->rt_expire);
- }
- }
-
- return (0);
-}
-
-#define MTUTIMO_DEFAULT (60*1)
-
-static void
-in6_mtutimo_setwa(struct rib_head *rnh, uint32_t fibum, int af,
- void *_arg)
-{
- struct mtuex_arg *arg;
-
- arg = (struct mtuex_arg *)_arg;
-
- arg->rnh = rnh;
-}
-
-static void
-in6_mtutimo(void *rock)
-{
- CURVNET_SET_QUIET((struct vnet *) rock);
- struct timeval atv;
- struct mtuex_arg arg;
-
- rt_foreach_fib_walk(AF_INET6, in6_mtutimo_setwa, in6_mtuexpire, &arg);
-
- atv.tv_sec = MTUTIMO_DEFAULT;
- atv.tv_usec = 0;
- callout_reset(&V_rtq_mtutimer, tvtohz(&atv), in6_mtutimo, rock);
- CURVNET_RESTORE();
-}
-
-/*
* Initialize our routing tree.
*/
-VNET_DEFINE_STATIC(int, _in6_rt_was_here);
-#define V__in6_rt_was_here VNET(_in6_rt_was_here)
int
in6_inithead(void **head, int off)
@@ -224,12 +168,6 @@
rh->rnh_addaddr = in6_addroute;
*head = (void *)rh;
- if (V__in6_rt_was_here == 0) {
- callout_init(&V_rtq_mtutimer, 1);
- in6_mtutimo(curvnet); /* kick off timeout first time */
- V__in6_rt_was_here = 1;
- }
-
return (1);
}
@@ -238,7 +176,6 @@
in6_detachhead(void **head, int off)
{
- callout_drain(&V_rtq_mtutimer);
rt_table_destroy((struct rib_head *)(*head));
return (1);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Sep 4, 2:53 AM (13 h, 41 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
38121286
Default Alt Text
D22865.id.diff (2 KB)
Attached To
Mode
D22865: Remove dead code from in6_rmx.c
Attached
Detach File
Event Timeline
Log In to Comment