home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!ub4b!news.cs.kuleuven.ac.be!blekul11!alijku11!k111114
- Organization: Johannes Kepler University Linz - Computing Center
- Date: Monday, 16 Nov 1992 05:47:51 CET
- From: <K111114@ALIJKU11.BITNET>
- Message-ID: <92321.054751K111114@ALIJKU11.BITNET>
- Newsgroups: comp.os.linux
- Subject: ICMP / IP-header
- Lines: 21
-
- this might look like a silly question ... Well !
-
- Line 402 of net/tcp/ip.c says:
-
- buff = (unsigned char *)(skb + 1);
-
- What is this line supposed to do ? Make buff (which is char *) point to the
- byte after skb , i.e. skb = 500 ==> buff = 501 ???
- What it really does is, pointing to skb + sizeof(struct skb) ... I dunno if
- that is the intention of this line. In fact, when I compare the ip-header
- built (some lines below) to the ip-header printed in ip_queue_xmit, it looks
- (at least for an ICMP package) slighlty different. And I guess that's the
- reason why ptype->func isn't called (which should then be ip_rcv), because
- in dev.c the ptype is never found in the for()-loop somewhere near line 400 in
- routine dev_rint, because it could be a random value ... ?
-
- *shrug* Just curious ...
- If someone want's the ping.c source (which compiles with warnings ...),
- to check it out on your own machine, send me mail please.
-
- Herp.
-