RFC 5095 Deprecation of Type 0 Routing Headers in IPv6 and FreeBSD

2019-01-08 Thread prabhakar lakhera
Hi, Looks like: https://svnweb.freebsd.org/base?view=revision&revision=191942 I am wondering if it should also be removed from icmp6_notify_error? ## /* * XXX: cu

Bug in ICMP redirect handling

2017-02-21 Thread prabhakar lakhera
This seems like a bug: https://svnweb.freebsd.org/base/head/sys/netinet/tcp_subr.c?r1=303457&r2=303456&pathrev=303457 I believe the ordering of if/else checks for cmd value is important as the last one checks for mapping of PRC* to an error. Given that the mapping is defined to be 0 for redirect

Re: IPv6 stacks responds to all node link local multicast NS

2014-10-18 Thread prabhakar lakhera
RFC. Also the comment in the code suggests what RFC says but the check is more liberal. Also why it is different for DAD NS vs Neighbor resolution NS. On Friday, October 17, 2014, Hiroki Sato wrote: > prabhakar lakhera > wrote > in >: > > pr> This probably is more of a co

IPv6 stacks responds to all node link local multicast NS

2014-10-17 Thread prabhakar lakhera
This probably is more of a compliance issue (or may be not as the NS receipt section of RFC 4861 http://tools.ietf.org/html/rfc4861#page-62 does not talk about it). The neighbor solicitation message format says this: http://tools.ietf.org/html/rfc4861#page-22 Destination Address

Re: Why did KAME need ND6_LLINFO_WAITDELETE?

2013-01-10 Thread prabhakar lakhera
: > At Thu, 10 Jan 2013 15:50:30 -0800, > prabhakar lakhera wrote: > > > I see that* ND6_LLINFO_WAITDELETE *was done away with long time back. > > I was looking for any historical reasons for why it was needed and what > > triggered its removal. > > I'd normal

Why did KAME need ND6_LLINFO_WAITDELETE?

2013-01-10 Thread prabhakar lakhera
Hi, I see that* ND6_LLINFO_WAITDELETE *was done away with long time back. I was looking for any historical reasons for why it was needed and what triggered its removal. Any pointers will be much appreciated. Thanks! ___ freebsd-net@freebsd.org mailing

Re: defrouter_addreq calling RTFREE?

2012-07-19 Thread prabhakar lakhera
I see that it changed from 7 to 8. However doesn't specify why. Have some semantics changed? On Thu, Jul 19, 2012 at 5:59 PM, prabhakar lakhera < prabhakar.lakh...@gmail.com> wrote: > Hi, > > It could very well be that my brain wires are not working late in the day. > F

defrouter_addreq calling RTFREE?

2012-07-19 Thread prabhakar lakhera
Hi, It could very well be that my brain wires are not working late in the day. >From what I know most of the routing table entries (unless referenced by some other entity or another route in routing table) have reference count 0. At least that's how things used to be in BSD as also stated in TCP I

Route addition/deletion by nd6_prefix_(on/off)link

2012-06-10 Thread prabhakar lakhera
Hi, I have a question regarding route addition and deletion from these functions for IPv6. Why do we need it? Shouldn't the address configuration take care of installing subnet routes and deletion should take care of their deletion. best, Prabhakar ___

Re: How to set the IPv6 linklocal scope id for an interface?

2012-05-17 Thread prabhakar lakhera
Removing the hyperlinks (these seem to get appended by gmail: Hi, Is there any way for the administrator to set an interface's scope if for link local scope? I see that in6_domifattach calls scope6_ifattach which sets the interface local scope and link local scope for the interface equal to the

How to set the IPv6 linklocal scope id for an interface?

2012-05-17 Thread prabhakar lakhera
Hi, Is there any way for the administrator to set an interface's scope if for link local scope? I see that in6_domifattach calls scope6_ifattach which sets the interface local scope and link local scope for the interface equal to the ifp index. scope6_ifattach(struct ifnet *ifp) { .

Question on rtredirect code

2012-04-30 Thread prabhakar lakhera
Hi, The rtredirect code has the following code lines: */* verify the gateway is directly reachable */* 521 if ((ifa = ifa_ifwithnet (gateway

Re: LLA (Link local address) in FreeBSD route command

2012-04-26 Thread prabhakar lakhera
comment inline: On Thu, Apr 26, 2012 at 6:33 AM, satish amara wrote: > I gave reference to old man page because it talks about scope which is > related to link local address of IPV6. > I don't see the latest man page talks about link-local address of IPV6. So > I am looking for how routes for lin

About static route retargetting in IPv6

2012-04-26 Thread prabhakar lakhera
Hi, In RFC 4861 Section: 8.1. Validation of Redirect Messageswe have the following bullets: A host *MUST *silently discard any received Redirect message that does not satisfy all of the following validity checks: - IP Source Address is a link-local

Race condition in IPv6 DAD detection code?

2012-03-09 Thread prabhakar lakhera
*Working on freed pointer??? * *log(LOG_ERR, "%s: DAD detected duplicate IPv6 address %s: "* *"NS in/out=%d/%d, NA in=%d\n",* *if_name(ifa->ifa_ifp), ip6_sprintf(ip6buf, &ia->ia_addr.sin6_addr),* * dp->dad_ns_ic

Doubt regarding IPv6 DAD detection code

2012-03-07 Thread prabhakar lakhera
Hi, I was puzzled to look at DAD detection code in FreeBSD. We check for counters for any received NA/NS for DAD in nd6_dad_timer: if (dp->dad_na_icount) { 1326 /* 1327 * the check is in nd6_dad_na_input(), 1328 * but

Ipv6 gw address scope limited by redirect?

2012-01-06 Thread prabhakar lakhera
Hi, The RFC 4861 (ND) states the following for the icmpv6 redirect: Source Address MUST be the link-local address assigned to the interface from which this message is sent. This combined with the following in icmp6_redirect_input ensures that if a static default route was i

mbuf leak in icmp6 code??

2011-11-01 Thread prabhakar lakhera
Hi, In FreeBSD icmp6 code I see function where we are either going to freeit where passed mbuf is freed or we are simply returning. For example: icmp6_input calls icmp6_redirect_input and right after it returns it makes m=NULL. Inside icmp6_redirect_input there are checks for ifp and for the mess