home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / os / linux / 16812 < prev    next >
Encoding:
Internet Message Format  |  1992-11-15  |  1.2 KB

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