"Fossies" - the Fresh Open Source Software Archive

Member "argus-3.0.8.2/include/cygwin-include/netinet/udp_var.h" (14 Apr 2015, 1086 Bytes) of package /linux/misc/argus-3.0.8.2.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "udp_var.h" see the Fossies "Dox" file reference documentation.

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