xref: /titanic_41/usr/src/uts/common/netinet/udp_var.h (revision 989f28072d20c73ae0955d6a1e3e2fc74831cb39)
1 /*
2  * Copyright (c) 1982, 1986 Regents of the University of California.
3  * All rights reserved.  The Berkeley software License Agreement
4  * specifies the terms and conditions for redistribution.
5  */
6 
7 /*
8  * UDP kernel structures and variables.
9  */
10 
11 #ifndef	_NETINET_UDP_VAR_H
12 #define	_NETINET_UDP_VAR_H
13 
14 #pragma ident	"%Z%%M%	%I%	%E% SMI"
15 /* udp_var.h 1.8 88/08/19 SMI; from UCB 7.1 6/5/86	*/
16 
17 #ifdef	__cplusplus
18 extern "C" {
19 #endif
20 
21 struct	udpiphdr {
22 	struct 	ipovly ui_i;		/* overlaid ip structure */
23 	struct	udphdr ui_u;		/* udp header */
24 };
25 #define	ui_next		ui_i.ih_next
26 #define	ui_prev		ui_i.ih_prev
27 #define	ui_x1		ui_i.ih_x1
28 #define	ui_pr		ui_i.ih_pr
29 #define	ui_len		ui_i.ih_len
30 #define	ui_src		ui_i.ih_src
31 #define	ui_dst		ui_i.ih_dst
32 #define	ui_sport	ui_u.uh_sport
33 #define	ui_dport	ui_u.uh_dport
34 #define	ui_ulen		ui_u.uh_ulen
35 #define	ui_sum		ui_u.uh_sum
36 
37 struct	udpstat {
38 	int	udps_hdrops;
39 	int	udps_badsum;
40 	int	udps_badlen;
41 	int	udps_fullsock;
42 };
43 
44 #define	UDP_TTL		30		/* time to live for UDP packets */
45 
46 #ifdef	__cplusplus
47 }
48 #endif
49 
50 #endif	/* _NETINET_UDP_VAR_H */
51