Re: [1/1] netchannel subsystem.
From: Evgeniy Polyakov <hidden>
Date: 2006-05-16 06:59:41
From: Evgeniy Polyakov <hidden>
Date: 2006-05-16 06:59:41
On Mon, May 15, 2006 at 11:57:12PM -0700, David S. Miller (davem@davemloft.net) wrote:
From: Evgeniy Polyakov <redacted> Date: Tue, 16 May 2006 10:19:09 +0400quoted
+static int netchannel_convert_skb_ipv4(struct sk_buff *skb, struct unetchannel *unc) +{...quoted
+ switch (unc->proto) { + case IPPROTO_TCP:...quoted
+ case IPPROTO_UDP:... Why do people write code like this? Port location is protocol agnostic, there are always 2 16-bit ports at beginning of header without exception. Without this, ICMP would be useless :-)
And what if we use ESP which would place it's hashed sequence number as port? -- Evgeniy Polyakov