From: Kis-Szabo Andras <kisza@pannongsm.hu>
To: kuznet@ms2.inr.ac.ru
Cc: Netdev <netdev@oss.sgi.com>
Subject: Re: net/ipv6/exthdrs.c
Date: 19 Jun 2002 11:30:39 +0200 [thread overview]
Message-ID: <1024478965.882.2.camel@arwen> (raw)
In-Reply-To: <1024435482.1332.10.camel@arwen>
Hello,
> > Is there any plan to add the ESP header to the ipv6_ext_hdr() function (as a
> > known header)?
> No, ESP is not a normal extension header, it terminates parse.
> So, ipv6_skip_headers cannot skip it.
The same behaviour as in NONE, but the NONE is listed and the ESP is
not. (But it is not a problem to me, I just asked something :) )
> BTW the same is with netfilter. I do not see how are you going to use it. :-)
The ESP belongs to the headers, it is a member of a possible chain.
- header match - i had to search for the ESP, too
- ESP match - it has a public SPI value, which can be used in rules
- general iteration, skipped together with the NONE.
It terminates the header chain, but the existance of the ESP header and
its SPI value are usefull information.
> > (It requires changes in this file and in the icmp.c at the first round.)
> I am afraid this will simply break the function.
Yes, i am afraid You're right. :(
Adding the ESP to the headers will break the icmp code. :(
> This may be right even not depending on this issue. Goals are different:
> the function in exthdrs.c does the best efforts to guess what protocol
> is, the function in netfilter should be paranoid.
I added a similar function (exactly the same but with the ESP) to decide
about the nexthdr value and a new header parser/evaluator with strict
size/pointer checks.
Last week one of our user sent a direct request to eliminate the
duplicated functions - so He pushed me to send the original question to
this forum.
Thanks for the answers, I 'wrote up them'.
Regards,
kisza
--
Andras Kis-Szabo Security Development, Design and Audit
-------------------------/ Zorp, NetFilter and IPv6
kisza@SecurityAudit.hu /-----Member of the BUTE-MIS-SEARCHlab------>
next prev parent reply other threads:[~2002-06-19 9:30 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-06-17 20:26 [PATCH][2.5.22] OOPS in tcp_v6_get_port Carl Ritson
2002-06-17 21:33 ` David S. Miller
[not found] ` <20020617.143319.54623892.davem@redhat.com>
2002-06-18 0:57 ` Arnaldo Carvalho de Melo
2002-06-18 2:17 ` David S. Miller
[not found] ` <20020617.191726.55300824.davem@redhat.com>
2002-06-18 2:49 ` Arnaldo Carvalho de Melo
2002-06-18 3:58 ` [BKPATCH] " Arnaldo Carvalho de Melo
[not found] ` <20020618035804.GA18759@conectiva.com.br>
2002-06-18 4:15 ` Arnaldo Carvalho de Melo
[not found] ` <20020618041539.GB18759@conectiva.com.br>
2002-06-18 4:17 ` David S. Miller
2002-06-18 7:38 ` Carl Ritson
2002-06-18 9:43 ` kuznet
2002-06-18 9:58 ` David S. Miller
2002-06-19 9:54 ` Arnaldo Carvalho de Melo
2002-06-18 11:51 ` net/ipv6/exthdrs.c Andras Kis-Szabo
2002-06-18 12:00 ` net/ipv6/exthdrs.c Pekka Savola
2002-06-18 13:50 ` net/ipv6/exthdrs.c Andras Kis-Szabo
2002-06-18 14:00 ` [PATCH] net/ipv6/exthdrs.c Andras Kis-Szabo
2002-06-18 19:03 ` net/ipv6/exthdrs.c kuznet
[not found] ` <1024435482.1332.10.camel@arwen>
2002-06-19 9:30 ` Kis-Szabo Andras [this message]
2002-06-19 9:42 ` net/ipv6/exthdrs.c kuznet
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1024478965.882.2.camel@arwen \
--to=kisza@pannongsm.hu \
--cc=kuznet@ms2.inr.ac.ru \
--cc=netdev@oss.sgi.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).