netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* nf_conntrack_proto_generic, assigned to 0
@ 2009-01-24 15:22 Christoph Paasch
  2009-01-26 13:19 ` Patrick McHardy
  0 siblings, 1 reply; 4+ messages in thread
From: Christoph Paasch @ 2009-01-24 15:22 UTC (permalink / raw)
  To: netfilter-devel

Hi,

while reading through the source-code I remarked, that for the generic l4 
protocol handler (nf_conntrack_proto_generic.c)  the protocol number 0 is 
used. While linux/in.h defines IPPROTO_IP = 0 (and says "a dummy protocol for 
tcp", whatever that may mean), in net/ipv6.h, the protocol 0 is used for the 
hop-by-hop header. And as IANA states, 0 is assigned to the IPv6 Hop-by-hop 
option.

Even, if netfilter doesn't tracks the hop-by-hop protocol, it shouldn't use 
this number for the generic protocol handler, because this might be confusing.
In my opinion, 255 should be used, which is assigned as "Reserved" by IANA.

What do you think?

--
Christoph Paasch

École Polytechnique de Louvain
Département d'ingénierie informatique

www.rollerbulls.be
--
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-01-26 15:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-24 15:22 nf_conntrack_proto_generic, assigned to 0 Christoph Paasch
2009-01-26 13:19 ` Patrick McHardy
2009-01-26 14:57   ` [PATCH] netfilter: changed generic l4 protocol number Christoph Paasch
2009-01-26 15:15     ` Patrick McHardy

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).