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

#434: Initial tcpip header merges.

File:
1 edited

Legend:

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

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r182 r183  
    11/* Modified for emx by hv 1994,1996
     2
    23 *
    34 * Copyright (c) 1982, 1986 Regents of the University of California.
     
    3940#define _NETINET_IF_ETHER_H_
    4041
    41 /*
    42  * Ethernet address - 6 octets
    43  * this is only used by the ethers(3) functions.
    44  */
    45 struct ether_addr {
    46         u_char ether_addr_octet[6];
    47 };
     42#ifdef TCPV40HDRS
    4843
    4944/*
     
    5752
    5853#define ETHERTYPE_PUP           0x0200  /* PUP protocol */
    59 /* the IBM header corrects the following to 0x608 for OS/2 but I believe
    60  * this is just a dirty hack
    61  */
     54#define ETHERTYPE_IP            0x0800  /* IP protocol */
     55#ifdef OS2 /* hv thinks this is just a dirty hack, but we must include it. */
     56#define ETHERTYPE_ARP           0x0608  /* address resolution protocol */
     57#else
    6258#define ETHERTYPE_ARP           0x0806  /* address resolution protocol */
    63 #define ETHERTYPE_IP            0x0800  /* IP protocol */
    64 #define ETHERTYPE_REVARP        0x8035  /* reverse addr resolution protocol */
     59#endif
    6560
    6661/*
     
    7974 *
    8075 * See RFC 826 for protocol description.  Structure below is adapted
    81  * to resolving internet addresses.  Field names used correspond to 
     76 * to resolving internet addresses.  Field names used correspond to
    8277 * RFC 826.
    8378 */
     
    113108 * Internet to ethernet address resolution table.
    114109 */
    115 #ifdef TCPIPV4
    116110#pragma pack(1)
    117 #else
    118 #pragma pack(4)
    119 #endif
    120111struct  arptab {
    121112        struct  in_addr at_iaddr;       /* internet address */
     
    127118        u_short at_rcf;                 /* token ring routing control field */
    128119        u_short at_rseg[8];             /* token ring routing segments */
     120
    129121        u_long at_millisec;             /* TOD millsecons of last update */
    130 #ifdef TCPIPV4
    131122        short at_interface;             /* interface index */
    132 #else
    133         int at_interface;               /* interface index */
    134123#endif
    135124};
    136125#pragma pack()
    137126
     127
     128
     129
     130
     131
     132
     133
     134
     135
     136
     137
     138
     139
     140
     141
     142
     143
     144
     145
     146
     147
     148
     149
     150
     151
     152
     153
     154
     155
     156
     157
     158
     159
     160
     161
     162
     163
    138164#endif /* !_NETINET_IF_ETHER_H_ */
Note: See TracChangeset for help on using the changeset viewer.