This patch updates the Linux the Intra-Site Automatic Tunnel Addressing
Protocol (ISATAP) implementation. It places the ISATAP potential router
list (PRL) in the kernel and adds three new private ioctls for PRL
management. The diffs are specific to the netdev net-2.6.25 development
tree taken by "git pull" on 1/14/08.
Signed-off-by: Fred L. Templin <fred.l.templin@boeing.com>
--- net-2.6.25/net/ipv6/ndisc.c.orig 2008-01-14 15:35:55.000000000 -0800
+++ net-2.6.25/net/ipv6/ndisc.c 2008-01-15 09:02:23.000000000 -0800
@@ -1090,6 +1090,12 @@ static void ndisc_router_discovery(struc
return;
}
+ if (skb->rtr_type == RTRTYPE_HOST) {
+ ND_PRINTK2(KERN_WARNING
+ "ICMPv6 RA: from host or unauthorized router\n");
+ return;
+ }
+
/*
* set the RA_RECV flag in the interface
*/
@@ -1113,6 +1119,10 @@ static void ndisc_router_discovery(struc
return;
}
+ /* skip link-specific parameters from interior routers */
+ if (skb->rtr_type == RTRTYPE_INTERIOR)
+ goto skip_linkparms;
+
if (in6_dev->if_flags & IF_RS_SENT) {
/*
* flag that an RA was received after an RS was sent
@@ -1227,6 +1237,8 @@ skip_defrtr:
}
}
+skip_linkparms:
+
/*
* Process options.
*/
@@ -1266,6 +1278,10 @@ skip_defrtr:
}
#endif
+ /* skip link-specific ndopts from interior routers */
+ if (skb->rtr_type == RTRTYPE_INTERIOR)
+ goto out;
+
if (in6_dev->cnf.accept_ra_pinfo && ndopts.nd_opts_pi) {
struct nd_opt_hdr *p;
for (p = ndopts.nd_opts_pi;
@@ -1329,6 +1345,14 @@ static void ndisc_redirect_rcv(struct sk
int optlen;
u8 *lladdr = NULL;
+ switch (skb->rtr_type) {
+ case RTRTYPE_HOST:
+ case RTRTYPE_INTERIOR:
+ ND_PRINTK2(KERN_WARNING
+ "ICMPv6 Redirect: from host or unauthorized router\n");
+ return;
+ }
+
if (!(ipv6_addr_type(&ipv6_hdr(skb)->saddr) & IPV6_ADDR_LINKLOCAL)) {
ND_PRINTK2(KERN_WARNING
"ICMPv6 Redirect: source address is not link-local.\n");
--- net-2.6.25/net/ipv6/route.c.orig 2008-01-14 15:39:40.000000000 -0800
+++ net-2.6.25/net/ipv6/route.c 2008-01-14 15:39:55.000000000 -0800
@@ -1655,8 +1655,6 @@ struct rt6_info *rt6_get_dflt_router(str
return rt;
}
-EXPORT_SYMBOL(rt6_get_dflt_router);
-
struct rt6_info *rt6_add_dflt_router(struct in6_addr *gwaddr,
struct net_device *dev,
unsigned int pref)
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
| david | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| Natalie Protasevich | [BUG] New Kernel Bugs |
| Pardo | Re: pthread_create() slow for many threads; also time to revisit 64b context switc... |
| Bart Van Assche | Integration of SCST in the mainstream Linux kernel |
git: | |
| Paolo Ciarrocchi | gmail smtp server and git-send-mail. Is this combination working? |
| Andreas Ericsson | git to libgit2 code relicensing |
| Seth Falcon | git-svn, remote tracking branch question |
| Jesus Sanchez | aterm, rxvt -- memory usage |
| Stefan Beke | mail dovecot: pipe() failed: Too many open files |
| Tanvir | Re: Adobe Flash on OpenBSD |
| Juan Miscaro | Re: When will OpenBSD support UTF8? |
| Lennert Buytenhek | Re: using software TSO on non-TSO capable netdevices |
| Auke Kok | [PATCH 3/5] e1000e: Allow TSO to trickle down to VLAN device |
| Johann Baudy | Packet mmap: TX RING and zero copy |
| Jay Cliburn | atl1 warn_on_slowpath help |
