Re: [1/1] netchannel subsystem.
From: "David S. Miller" <davem@davemloft.net>
Date: 2006-05-16 06:57:08
From: "David S. Miller" <davem@davemloft.net>
Date: 2006-05-16 06:57:08
From: Evgeniy Polyakov <redacted> Date: Tue, 16 May 2006 10:19:09 +0400
+static int netchannel_convert_skb_ipv4(struct sk_buff *skb, struct unetchannel *unc)
+{...
+ switch (unc->proto) {
+ case IPPROTO_TCP:...
+ 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 :-)