Ignore:
Timestamp:
May 19, 2003, 4:41:00 AM (22 years ago)
Author:
bird
Message:

#434: Initial tcpip header merges.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/emx/include/netinet/udp.h

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r182 r183  
    11/* Modified for emx by hv 1996
     2 * Modified for gcc/os2 by bird 2003
    23 *
    34 * Copyright (c) 1982, 1986 Regents of the University of California.
     
    3940#define _NETINET_UDP_H_
    4041
     42#ifdef TCPV40HDRS
     43#include <netinet/udp_var.h>
     44#else
    4145/*
    4246 * Udp protocol header.
    4347 * Per RFC 768, September, 1981.
    4448 */
     49#pragma pack(1)
    4550struct udphdr {
    4651        u_short uh_sport;               /* source port */
     
    4954        u_short uh_sum;                 /* udp checksum */
    5055};
    51 
    52 /* hv: this is a new structure of TCPIPV4. Consult IBM's docs on that */
    53 #ifdef TCPIPV4
    54 #include <netinet/udp_var.h>
    55 struct  udpstat {
    56         u_long  udps_hdrops;
    57         u_long  udps_badsum;
    58         u_long  udps_badlen;
    59         u_long  udps_udpInDatagrams;
    60         u_long  udps_udpNoPorts;
    61         u_long  udps_udpOutDatagrams;
    62 };
     56#pragma pack()
    6357#endif
    6458
Note: See TracChangeset for help on using the changeset viewer.