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 <[EMAIL PROTECTED]> --- 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 [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html