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

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

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

Fernando Gont-2
Folks,

FYI:

* <http://tools.ietf.org/id/draft-ietf-6man-oversized-header-chain-01.txt>
* <http://tools.ietf.org/id/draft-ietf-6man-nd-extension-headers-00.txt>

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

Cheers,
--
Fernando Gont
e-mail: [hidden email] || [hidden email]
PGP Fingerprint: 7809 84F5 322E 45C7 F1C9 3945 96EE A9EF D076 FFF1

Reply | Threaded
Open this post in threaded view
|

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

Loganaden Velvindron-2
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 <[hidden email]> wrote:

> Folks,
>
> FYI:
>
> * <http://tools.ietf.org/id/draft-ietf-6man-oversized-header-chain-01.txt>
> * <http://tools.ietf.org/id/draft-ietf-6man-nd-extension-headers-00.txt>
>
> P.S.: These two have already been adopted by the 6man wg, and are close
> to publication as RFCs.
>
> Cheers,
> --
> Fernando Gont
> e-mail: [hidden email] || [hidden email]
> 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 !

Reply | Threaded
Open this post in threaded view
|

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

Fernando Gont-2
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: [hidden email] || [hidden email]
PGP Fingerprint: 7809 84F5 322E 45C7 F1C9 3945 96EE A9EF D076 FFF1