Thread (35 messages) 35 messages, 7 authors, 2006-07-08

Re: [1/1] netchannel subsystem.

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 :-)
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help