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 #pragma ident "%Z%%M% %I% %E% SMI" 15*7c478bd9Sstevel@tonic-gate /* udp_var.h 1.8 88/08/19 SMI; from UCB 7.1 6/5/86 */ 16*7c478bd9Sstevel@tonic-gate 17*7c478bd9Sstevel@tonic-gate #ifdef __cplusplus 18*7c478bd9Sstevel@tonic-gate extern "C" { 19*7c478bd9Sstevel@tonic-gate #endif 20*7c478bd9Sstevel@tonic-gate 21*7c478bd9Sstevel@tonic-gate struct udpiphdr { 22*7c478bd9Sstevel@tonic-gate struct ipovly ui_i; /* overlaid ip structure */ 23*7c478bd9Sstevel@tonic-gate struct udphdr ui_u; /* udp header */ 24*7c478bd9Sstevel@tonic-gate }; 25*7c478bd9Sstevel@tonic-gate #define ui_next ui_i.ih_next 26*7c478bd9Sstevel@tonic-gate #define ui_prev ui_i.ih_prev 27*7c478bd9Sstevel@tonic-gate #define ui_x1 ui_i.ih_x1 28*7c478bd9Sstevel@tonic-gate #define ui_pr ui_i.ih_pr 29*7c478bd9Sstevel@tonic-gate #define ui_len ui_i.ih_len 30*7c478bd9Sstevel@tonic-gate #define ui_src ui_i.ih_src 31*7c478bd9Sstevel@tonic-gate #define ui_dst ui_i.ih_dst 32*7c478bd9Sstevel@tonic-gate #define ui_sport ui_u.uh_sport 33*7c478bd9Sstevel@tonic-gate #define ui_dport ui_u.uh_dport 34*7c478bd9Sstevel@tonic-gate #define ui_ulen ui_u.uh_ulen 35*7c478bd9Sstevel@tonic-gate #define ui_sum ui_u.uh_sum 36*7c478bd9Sstevel@tonic-gate 37*7c478bd9Sstevel@tonic-gate struct udpstat { 38*7c478bd9Sstevel@tonic-gate int udps_hdrops; 39*7c478bd9Sstevel@tonic-gate int udps_badsum; 40*7c478bd9Sstevel@tonic-gate int udps_badlen; 41*7c478bd9Sstevel@tonic-gate int udps_fullsock; 42*7c478bd9Sstevel@tonic-gate }; 43*7c478bd9Sstevel@tonic-gate 44*7c478bd9Sstevel@tonic-gate #define UDP_TTL 30 /* time to live for UDP packets */ 45*7c478bd9Sstevel@tonic-gate 46*7c478bd9Sstevel@tonic-gate #ifdef __cplusplus 47*7c478bd9Sstevel@tonic-gate } 48*7c478bd9Sstevel@tonic-gate #endif 49*7c478bd9Sstevel@tonic-gate 50*7c478bd9Sstevel@tonic-gate #endif /* _NETINET_UDP_VAR_H */ 51