# 2.11BSD#431 - /usr/src/sys/netinet/udp_var.h

##### Variables

    udb               X
    udpstat           X

##### Macros

    UDPCTL_CHECKSUM   X
    UDPCTL_MAXID      X
    UDPCTL_NAMES      X
    ui_dport          X
    ui_dst            X
    ui_len            X
    ui_next           X
    ui_pad            X
    ui_pr             X
    ui_prev           X
    ui_sport          X
    ui_src            X
    ui_sum            X
    ui_ulen           X
    ui_x1             X

##### struct's

    udpiphdr          X
    udpstat           X

       1: /*
       2:  * Copyright (c) 1982, 1986 Regents of the University of California.
       3:  * All rights reserved.
       4:  *
       5:  * Redistribution and use in source and binary forms are permitted
       6:  * provided that this notice is preserved and that due credit is given
       7:  * to the University of California at Berkeley. The name of the University
       8:  * may not be used to endorse or promote products derived from this
       9:  * software without specific prior written permission. This software
      10:  * is provided ``as is'' without express or implied warranty.
      11:  *
      12:  *	@(#)udp_var.h	7.3.2 (2.11BSD GTE) 1995/10/09
      13:  */
      14:
      15: /*
      16:  * UDP kernel structures and variables.
      17:  */
      18: struct  udpiphdr {
      19:     struct  ipovly ui_i;        /* overlaid ip structure */
      20:     struct  udphdr ui_u;        /* udp header */
      21: };
      22: #define ui_next     ui_i.ih_next
      23: #define ui_prev     ui_i.ih_prev
      24: #define ui_pad      ui_i.ih_pad
      25: #define ui_x1       ui_i.ih_x1
      26: #define ui_pr       ui_i.ih_pr
      27: #define ui_len      ui_i.ih_len
      28: #define ui_src      ui_i.ih_src
      29: #define ui_dst      ui_i.ih_dst
      30: #define ui_sport    ui_u.uh_sport
      31: #define ui_dport    ui_u.uh_dport
      32: #define ui_ulen     ui_u.uh_ulen
      33: #define ui_sum      ui_u.uh_sum
      34:
      35: struct  udpstat {
      36:                 /* input statistics: */
      37:     long    udps_ipackets;      /* total input packets */
      38:     long    udps_hdrops;        /* packet shorter than header */
      39:     long    udps_badsum;        /* checksum error */
      40:     long    udps_badlen;        /* data length larger than packet */
      41:     long    udps_noport;        /* no socket on port */
      42:     long    udps_noportbcast;   /* of above, arrived as broadcast */
      43:     long    udps_fullsock;      /* not delivered, input socket full */
      44:     long    udpps_pcbcachemiss; /* input packets missing pcb cache */
      45:                 /* output statistics: */
      46:     long    udps_opackets;      /* total output packets */
      47: };
      48:
      49: /*
      50:  * Names for UDP sysctl objects
      51:  */
      52: #define UDPCTL_CHECKSUM     1   /* checksum UDP packets */
      53: #define UDPCTL_MAXID        2
      54:
      55: #ifndef KERNEL
      56: #define UDPCTL_NAMES { \
      57:     { 0, 0 }, \
      58:     { "checksum", CTLTYPE_INT }, \
      59: }
      60: #endif
      61:
      62: #ifdef SUPERVISOR
      63: struct  inpcb udb;
      64: struct  udpstat udpstat;
      65: #endif

#### Defined variables

udb defined in line 63; used 9 times

- in /usr/src/sys/netinet/udp_usrreq.c line 36, 45(3), 122, 187-190(2), 311, 419

udpstat defined in line 64; used 23 times

- in /usr/src/new/crash/inet.c line 208-219(9)
- in /usr/src/sys/netinet/udp_usrreq.c line 66, 74, 88, 108, 126-132(3), 151, 263
- in /usr/src/ucb/netstat/inet.c line 217-224(5)

#### Defined struct's

udpiphdr defined in line 18; used 24 times

- in /usr/src/sys/netinet/udp_usrreq.c line 60(2), 72-77(6), 147-148(4), 199(2), 238-241(6), 258-261(4)

udpstat defined in line 35; used 6 times

- in line 64(2)
- in /usr/src/new/crash/inet.c line 208(2)
- in /usr/src/ucb/netstat/inet.c line 217(2)

#### Defined macros

UDPCTL_CHECKSUM defined in line 52; never used
UDPCTL_MAXID defined in line 53; used 1 times

- in /usr/src/bin/sysctl/sysctl.c line 543

UDPCTL_NAMES defined in line 56; used 1 times

- in /usr/src/bin/sysctl/sysctl.c line 523

ui_dport defined in line 31; used 3 times

- in /usr/src/sys/netinet/udp_usrreq.c line 118-123(2), 250

ui_dst defined in line 29; used 4 times

- in /usr/src/sys/netinet/udp_usrreq.c line 121-123(2), 131, 248

ui_len defined in line 27; used 3 times

- in /usr/src/sys/netinet/udp_usrreq.c line 106, 246-251(2)

ui_next defined in line 22; used 2 times

- in /usr/src/sys/netinet/udp_usrreq.c line 103, 242

ui_pad defined in line 24; used 2 times

- in /usr/src/sys/netinet/udp_usrreq.c line 104, 243

ui_pr defined in line 26; used 1 times

- in /usr/src/sys/netinet/udp_usrreq.c line 245

ui_prev defined in line 23; used 2 times

- in /usr/src/sys/netinet/udp_usrreq.c line 103, 242

ui_sport defined in line 30; used 4 times

- in /usr/src/sys/netinet/udp_usrreq.c line 119-122(2), 145, 249

ui_src defined in line 28; used 4 times

- in /usr/src/sys/netinet/udp_usrreq.c line 120-122(2), 146, 247

ui_sum defined in line 33; used 5 times

- in /usr/src/sys/netinet/udp_usrreq.c line 102-107(2), 256-259(3)

ui_ulen defined in line 32; used 3 times

- in /usr/src/sys/netinet/udp_usrreq.c line 85, 106, 251

ui_x1 defined in line 25; used 2 times

- in /usr/src/sys/netinet/udp_usrreq.c line 105, 244

#### Usage of this include

udp_var.h used 6 times

- in /usr/src/bin/sysctl/sysctl.c line 55
- in /usr/src/new/crash/dispnet.c line 40
- in /usr/src/new/crash/inet.c line 34
- in /usr/src/sys/netinet/udp_usrreq.c line 34
- in /usr/src/ucb/PORT/systat/netstat.c line 37
- in /usr/src/ucb/netstat/inet.c line 45

Last modified: 1995-10-11 Generated: 2016-12-26 | Generated by src2html V0.67 page hit count: 1223 |