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