Re: A question about linux/net/ipv4/ipcomp.c

2006-07-21 Thread Herbert Xu
Igor V. Liferenko [EMAIL PROTECTED] wrote: Would you please say why it's 60, and not 52? The header length / 4 must fit within a single hexadecimal digit. Therefore the maximum is 15 * 4 = 60. Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmVHI~} [EMAIL PROTECTED]

A question about linux/net/ipv4/ipcomp.c

2006-07-20 Thread Igor V. Liferenko
Hello, everyone. I'm having fun reading RFC's and looking through linux source code for implementation examples. What I'm not able to understand is this piece of code : union { struct iphdriph; charbuf[60]; } tmp_iph; and corresponding RFC 791