File: sockunion.h

package info (click to toggle)
iputils 3%3A20020927-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 620 kB
  • ctags: 902
  • sloc: ansic: 7,876; perl: 585; makefile: 170; sh: 15
file content (25 lines) | stat: -rw-r--r-- 660 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25

/* I cannot describe, how I laughed, when saw, that now sys/socket.h
   includes ALL OF networking include files. 8)8)8)

   Bravo! Aah, they forgot sockaddr_ll, sockaddr_pkt and sockaddr_nl...
   Not a big problem, we only start the way to single UNIVERSAL include file:

   #include <GNU-Gnu_is_Not_Unix.h>.

   Jokes apart, it is full crap. Removed.
   --ANK

 */

/* Union of all sockaddr types (required by IPv6 Basic API).  This is
   somewhat evil.  */
/* 8)8) Well, ipngwg really does strange things sometimes, but
   not in such extent! It is removed long ago --ANK
 */

union sockaddr_union
  {
    struct sockaddr sa;
    char __maxsize[128];
  };