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:  *	@(#)udp_var.h	7.1 (Berkeley) 6/5/86
   7:  */
   8: 
   9: /*
  10:  * UDP kernel structures and variables.
  11:  */
  12: struct  udpiphdr {
  13:     struct  ipovly ui_i;        /* overlaid ip structure */
  14:     struct  udphdr ui_u;        /* udp header */
  15: };
  16: #define ui_next     ui_i.ih_next
  17: #define ui_prev     ui_i.ih_prev
  18: #define ui_x1       ui_i.ih_x1
  19: #define ui_pr       ui_i.ih_pr
  20: #define ui_len      ui_i.ih_len
  21: #define ui_src      ui_i.ih_src
  22: #define ui_dst      ui_i.ih_dst
  23: #define ui_sport    ui_u.uh_sport
  24: #define ui_dport    ui_u.uh_dport
  25: #define ui_ulen     ui_u.uh_ulen
  26: #define ui_sum      ui_u.uh_sum
  27: 
  28: struct  udpstat {
  29:     int udps_hdrops;
  30:     int udps_badsum;
  31:     int udps_badlen;
  32: };
  33: 
  34: #define UDP_TTL     30      /* time to live for UDP packets */
  35: 
  36: #ifdef KERNEL
  37: struct  inpcb udb;
  38: struct  udpstat udpstat;
  39: #endif

Defined variables

udb defined in line 37; used 7 times
udpstat defined in line 38; used 3 times

Defined struct's

udpiphdr defined in line 12; used 24 times
udpstat defined in line 28; used 2 times
  • in line 38(2)

Defined macros

UDP_TTL defined in line 34; used 1 times
ui_dport defined in line 24; used 2 times
ui_dst defined in line 22; used 3 times
ui_len defined in line 20; used 3 times
ui_next defined in line 16; used 2 times
ui_pr defined in line 19; used 1 times
ui_prev defined in line 17; used 2 times
ui_sport defined in line 23; used 3 times
ui_src defined in line 21; used 3 times
ui_sum defined in line 26; used 5 times
ui_ulen defined in line 25; used 3 times
ui_x1 defined in line 18; used 2 times

Usage of this include

Last modified: 1986-06-05
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 847
Valid CSS Valid XHTML 1.0 Strict