home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 4 / DATAFILE_PDCD4.iso / utilities / utilss / sockets / include / netinet / h / udp_var < prev    next >
Encoding:
Text File  |  1995-06-13  |  1.6 KB  |  62 lines

  1. /*
  2.  * $Header: /ax/networking:include/netinet/udp_var.h:networking  1.2  $
  3.  * $Source: /ax/networking:include/netinet/udp_var.h: $
  4.  *
  5.  * Copyright (c) 1988 Acorn Computers Ltd., Cambridge, England
  6.  *
  7.  * $Log:    udp_var.h,v $
  8.  * Revision 1.2  95/06/13  14:38:32  kwelton
  9.  * Global variables udb and udpstat were declared as externs.  This stops
  10.  * them being linked as COMMON data symbols, which the AOF linker cannot
  11.  * cope with very well.
  12.  * 
  13.  * Revision 1.1  95/01/11  10:17:10  kwelton
  14.  * Initial revision
  15.  * 
  16.  * Revision 1.3  88/06/17  20:28:26  beta
  17.  * Acorn Unix initial beta version
  18.  * 
  19.  */
  20. /* @(#)udp_var.h    1.1 87/07/01 3.2/4.3NFSSRC */
  21. /*
  22.  * Copyright (c) 1982, 1986 Regents of the University of California.
  23.  * All rights reserved.  The Berkeley software License Agreement
  24.  * specifies the terms and conditions for redistribution.
  25.  *
  26.  *    @(#)udp_var.h    7.1 (Berkeley) 6/5/86
  27.  */
  28.  
  29. /*
  30.  * UDP kernel structures and variables.
  31.  */
  32. struct    udpiphdr {
  33.     struct     ipovly ui_i;        /* overlaid ip structure */
  34.     struct    udphdr ui_u;        /* udp header */
  35. };
  36. #define    ui_next        ui_i.ih_next
  37. #define    ui_prev        ui_i.ih_prev
  38. #define    ui_x1        ui_i.ih_x1
  39. #define    ui_pr        ui_i.ih_pr
  40. #define    ui_len        ui_i.ih_len
  41. #define    ui_src        ui_i.ih_src
  42. #define    ui_dst        ui_i.ih_dst
  43. #define    ui_sport    ui_u.uh_sport
  44. #define    ui_dport    ui_u.uh_dport
  45. #define    ui_ulen        ui_u.uh_ulen
  46. #define    ui_sum        ui_u.uh_sum
  47.  
  48. struct    udpstat {
  49.     int    udps_hdrops;
  50.     int    udps_badsum;
  51.     int    udps_badlen;
  52. };
  53.  
  54. #define    UDP_TTL        30        /* time to live for UDP packets */
  55.  
  56. #ifdef KERNEL
  57. extern struct    inpcb udb;
  58. extern struct    udpstat udpstat;
  59. #endif
  60.  
  61. /* EOF udp_var.h */
  62.