Changeset 429 for EcnlProtoTool/trunk/asp3_dcre/tinet/net/ethernet.h
- Timestamp:
- Jul 3, 2020, 7:19:17 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
EcnlProtoTool/trunk/asp3_dcre/tinet/net/ethernet.h
r331 r429 99 99 100 100 #if defined(__RX) 101 102 101 #pragma pack 102 #elif defined(_MSC_VER) 103 #pragma pack(push, 1) 104 #endif 105 106 #if defined(__RX) || defined(_MSC_VER) 107 103 108 typedef struct t_ether_header { 104 109 … … 113 118 uint16_t type; 114 119 } T_ETHER_HDR; 115 #pragma packoption116 120 117 121 #elif defined(TOPPERS_S810_CLG3_85) /* of #if defined(__RX) */ … … 143 147 uint8_t shost[ETHER_ADDR_LEN]; 144 148 uint16_t type; 145 } __attribute__((packed, aligned(2))) T_ETHER_HDR;149 } __attribute__((packed, aligned(2))) T_ETHER_HDR; 146 150 147 151 #endif /* of #if defined(__RX) */ … … 158 162 typedef struct t_ether_addr { 159 163 uint8_t lladdr[ETHER_ADDR_LEN]; 160 } __attribute__((packed, aligned(2)))T_ETHER_ADDR; 164 } __attribute__((packed, aligned(2))) T_ETHER_ADDR; 165 166 #if defined(__RX) 167 #pragma packoption 168 #elif defined(_MSC_VER) 169 #pragma pack(pop) 170 #endif 161 171 162 172 /* … … 208 218 /* インタフェースのマルチキャストアドレスへの変換 */ 209 219 220 #define IF_FLAG_UP 0x01U 221 #define IF_FLAG_LINK_UP 0x10U 222 210 223 /* 211 224 * 前方参照 … … 266 279 #endif /* of #ifdef T_IF_ETHER_NIC_SOFTC */ 267 280 268 #define IF_FLAG_UP 0x01U269 #define IF_FLAG_LINK_UP 0x10U270 271 281 /* 272 282 * 変数 … … 304 314 extern uint32_t ether_srand (void); 305 315 306 /** Function prototype for netif status- or link-callback functions. */307 316 typedef void (*ether_status_callback_fn)(T_IFNET *ether); 308 317 extern void ether_set_link_callback(ether_status_callback_fn link_callback); 309 extern void ether_set_link_up(T_IFNET *ether); 310 extern void ether_set_link_down(T_IFNET *ether); 318 extern void ether_set_link_up(); 319 extern void ether_set_link_down(); 320 extern void ether_set_up(); 321 extern void ether_set_down(); 311 322 312 323 #endif /* of #ifdef SUPPORT_ETHER */
Note:
See TracChangeset
for help on using the changeset viewer.