8322 nl: misleading-indentation
[unleashed/tickless.git] / usr / src / uts / common / netinet / udp_var.h
bloba26527daa622c6adcda716c4359329bdaa21e8d3
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 */
7 /*
8 * UDP kernel structures and variables.
9 */
11 #ifndef _NETINET_UDP_VAR_H
12 #define _NETINET_UDP_VAR_H
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 */
17 #ifdef __cplusplus
18 extern "C" {
19 #endif
21 struct udpiphdr {
22 struct ipovly ui_i; /* overlaid ip structure */
23 struct udphdr ui_u; /* udp header */
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
37 struct udpstat {
38 int udps_hdrops;
39 int udps_badsum;
40 int udps_badlen;
41 int udps_fullsock;
44 #define UDP_TTL 30 /* time to live for UDP packets */
46 #ifdef __cplusplus
48 #endif
50 #endif /* _NETINET_UDP_VAR_H */