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