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