Debian Codegraph @

listen/listen.h

raw
1 #define GCC_VERSION (__GNUC__ * 10000 \
2 + __GNUC_MINOR__ * 100 \
3 + __GNUC_PATCHLEVEL__)
4
5 #if GCC_VERSION >= 40500
6
7 /*
8 * Mark a position in code as unreachable. This can be used to
9 * suppress control flow warnings after asm blocks that transfer
10 * control elsewhere.
11 *
12 * Early snapshots of gcc 4.5 don't support this and we can't detect
13 * this in the preprocessor, but we can live with this because they're
14 * unreleased.
15 */
16 #define unreachable() \
17 do { __builtin_unreachable(); } while (0)
18 #else
19 #define unreachable() do { } while (1)
20 #endif
21
22 #define T_ERROR 1
23 #define T_PORT 2
24 #define T_KISS 3
25 #define T_BPQ 4
26 #define T_DATA 5
27 #define T_PROTOCOL 6
28 #define T_AXHDR 7
29 #define T_ADDR 8
30 #define T_IPHDR 9
31 #define T_TCPHDR 10
32 #define T_ROSEHDR 11
33 #define T_TIMESTAMP 12
34 #define T_FLEXNET 13
35 #define T_OPENTRAC 14
36
37 /* In utils.c */
38 extern int color; /* Colorized mode */
39 extern int sevenbit; /* Are we on a 7-bit terminal? */
40 extern int ibmhack; /* IBM mapping? */
41
42 void display_timestamp(void);
43
44 void lprintf(int dtype, char *fmt, ...);
45 int initcolor(void);
46 char *servname(int port, char *proto);
47
48 /* In listen.c */
49 void data_dump(void *, int, int);
50 int get16(unsigned char *);
51 int get32(unsigned char *);
52
53 /* In kissdump.c */
54 void ki_dump(unsigned char *, int, int);
55
56 /* ax25dump.c */
57 void ax25_dump(unsigned char *, int, int);
58 char *pax25(char *, unsigned char *);
59
60 /* In nrdump.c */
61 void netrom_dump(unsigned char *, int, int, int);
62
63 /* In arpdump.c */
64 void arp_dump(unsigned char *, int);
65
66 /* In ipdump.c */
67 void ip_dump(unsigned char *, int, int);
68
69 /* In icmpdump.c */
70 void icmp_dump(unsigned char *, int, int);
71
72 /* In udpdump.c */
73 void udp_dump(unsigned char *, int, int);
74
75 /* In tcpdump.c */
76 void tcp_dump(unsigned char *, int, int);
77
78 /* In rspfdump.c */
79 void rspf_dump(unsigned char *, int);
80
81 /* In ripdump.c */
82 void rip_dump(unsigned char *, int);
83
84 /* In rosedump.c */
85 void rose_dump(unsigned char *, int, int);
86
87 /* In flexnetdump.c */
88 void flexnet_dump(unsigned char *, int, int);
89
90 /* In opentracdump.c */
91 void opentrac_dump(unsigned char *, int, int);