Changeset 183 for trunk/src/emx/include/netinet/if_ether.h
- Timestamp:
- May 19, 2003, 4:41:00 AM (23 years ago)
- File:
-
- 1 edited
-
trunk/src/emx/include/netinet/if_ether.h (modified) (6 diffs, 1 prop)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/emx/include/netinet/if_ether.h
-
Property cvs2svn:cvs-rev
changed from
1.1to1.2
r182 r183 1 1 /* Modified for emx by hv 1994,1996 2 2 3 * 3 4 * Copyright (c) 1982, 1986 Regents of the University of California. … … 39 40 #define _NETINET_IF_ETHER_H_ 40 41 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 48 43 49 44 /* … … 57 52 58 53 #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 62 58 #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 65 60 66 61 /* … … 79 74 * 80 75 * 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 82 77 * RFC 826. 83 78 */ … … 113 108 * Internet to ethernet address resolution table. 114 109 */ 115 #ifdef TCPIPV4116 110 #pragma pack(1) 117 #else118 #pragma pack(4)119 #endif120 111 struct arptab { 121 112 struct in_addr at_iaddr; /* internet address */ … … 127 118 u_short at_rcf; /* token ring routing control field */ 128 119 u_short at_rseg[8]; /* token ring routing segments */ 120 129 121 u_long at_millisec; /* TOD millsecons of last update */ 130 #ifdef TCPIPV4131 122 short at_interface; /* interface index */ 132 #else133 int at_interface; /* interface index */134 123 #endif 135 124 }; 136 125 #pragma pack() 137 126 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 138 164 #endif /* !_NETINET_IF_ETHER_H_ */ -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.
