Re: Bringing some sanity to IPv6 traffic (IETF Internet-Drafts)

2012-10-23 Thread Fernando Gont
Hi, Loganaden,

On 10/21/2012 02:19 AM, Loganaden Velvindron wrote:
> Concerning the oversized-header-chain draft.
> 
> I'm still trying to wrap my head around ipv6 :-)
> 
> I was looking at the code and I thought of something like:
> 
>   /*
>* If it's the 1st fragment, record the length of the
>* unfragmentable part and the next header of the fragment header.
>*/
>   if (fragoff == 0) {
>   q6->ip6q_unfrglen = offset - sizeof(struct ip6_hdr) -
>   sizeof(struct ip6_frag);
> /* make sure that the header chain is contained with
> the first fragment */
> 
> if (q6->ip6q_unfrglen > IPV6_MMTU) {
>   IP6Q_UNLOCK();
> return (IPPROTO_DONE);
> }
> 
> If someone can help a bit, i can dig further :-)

Where does the above code check whether the entire IPv6 header chain is
present in the first fragment?

Cheers,
-- 
Fernando Gont
e-mail: ferna...@gont.com.ar || fg...@si6networks.com
PGP Fingerprint: 7809 84F5 322E 45C7 F1C9 3945 96EE A9EF D076 FFF1



Re: Bringing some sanity to IPv6 traffic (IETF Internet-Drafts)

2012-10-20 Thread Loganaden Velvindron
Concerning the oversized-header-chain draft.

I'm still trying to wrap my head around ipv6 :-)

I was looking at the code and I thought of something like:

/*
 * If it's the 1st fragment, record the length of the
 * unfragmentable part and the next header of the fragment header.
 */
if (fragoff == 0) {
q6->ip6q_unfrglen = offset - sizeof(struct ip6_hdr) -
sizeof(struct ip6_frag);
/* make sure that the header chain is contained with
the first fragment */

if (q6->ip6q_unfrglen > IPV6_MMTU) {
  IP6Q_UNLOCK();
  return (IPPROTO_DONE);
}

If someone can help a bit, i can dig further :-)

On Tue, Oct 16, 2012 at 1:56 AM, Fernando Gont  wrote:
> Folks,
>
> FYI:
>
> * 
> * 
>
> P.S.: These two have already been adopted by the 6man wg, and are close
> to publication as RFCs.
>
> Cheers,
> --
> Fernando Gont
> e-mail: ferna...@gont.com.ar || fg...@si6networks.com
> PGP Fingerprint: 7809 84F5 322E 45C7 F1C9 3945 96EE A9EF D076 FFF1
>



-- 
Brightest day,
Blackest night,
No bug shall escape my sight,
And those who worship evil's mind,
be wary of my powers,
puffy lantern's light !



Bringing some sanity to IPv6 traffic (IETF Internet-Drafts)

2012-10-15 Thread Fernando Gont
Folks,

FYI:

* 
* 

P.S.: These two have already been adopted by the 6man wg, and are close
to publication as RFCs.

Cheers,
-- 
Fernando Gont
e-mail: ferna...@gont.com.ar || fg...@si6networks.com
PGP Fingerprint: 7809 84F5 322E 45C7 F1C9 3945 96EE A9EF D076 FFF1