home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / os / linux / 16982 < prev    next >
Encoding:
Text File  |  1992-11-17  |  1.0 KB  |  27 lines

  1. Newsgroups: comp.os.linux
  2. Path: sparky!uunet!super!becker
  3. From: becker@super.org (Donald J. Becker)
  4. Subject: Re: ICMP / IP-header
  5. Message-ID: <1992Nov16.155527.3399@super.org>
  6. Sender: news@super.org (USENET News System)
  7. Nntp-Posting-Host: metropolis
  8. Organization: IDA Supercomputing Research Center
  9. References: <92321.054751K111114@ALIJKU11.BITNET>
  10. Date: Mon, 16 Nov 1992 15:55:27 GMT
  11. Lines: 14
  12.  
  13.  
  14. The '(char*)(skb+1)' idiom is used all over the place in the net
  15. stuff.  It took me a few second to understand what it was doing when I
  16. wrote my NE2000/3c503 driver, and later I still made the error of
  17. fixing up a compiler warning by doing '(char*) skb+1'.  Now that's a
  18. bitch to track down when everything else is just barely working.
  19.  
  20. GCC allows zero-length arrays in structures to accomplish the same
  21. goal.  Although this is non-ANSI, I think 'struct sk_buff' should be
  22. changed to use this construct.
  23. -- 
  24. Donald Becker                       becker@super.org
  25. Supercomputing Research Center,  Institute for Defense Analyses
  26. 17100 Science Drive, Bowie MD 21114           301-805-7482
  27.