Changeset dd0c8a0 in mainline for uspace/srv/net/ethip/std.h
- Timestamp:
- 2013-09-29T06:56:33Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a9bd960d
- Parents:
- 3deb0155 (diff), 13be2583 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/ethip/std.h
r3deb0155 rdd0c8a0 39 39 40 40 #include <sys/types.h> 41 #include <inet/addr.h> 41 42 42 #define ETH_ADDR_SIZE 643 #define IPV4_ADDR_SIZE 444 #define ETH_FRAME_MIN_SIZE 6043 #define ETH_ADDR_SIZE 6 44 #define IPV4_ADDR_SIZE 4 45 #define ETH_FRAME_MIN_SIZE 60 45 46 46 47 /** Ethernet frame header */ 47 48 typedef struct { 48 49 /** Destination Address */ 49 uint8_t dest[ETH_ADDR_SIZE];50 addr48_t dest; 50 51 /** Source Address */ 51 uint8_t src[ETH_ADDR_SIZE];52 addr48_t src; 52 53 /** Ethertype or Length */ 53 54 uint16_t etype_len; … … 67 68 uint16_t opcode; 68 69 /** Sender hardware address */ 69 uint8_t sender_hw_addr[ETH_ADDR_SIZE];70 addr48_t sender_hw_addr; 70 71 /** Sender protocol address */ 71 uint32_t sender_proto_addr;72 addr32_t sender_proto_addr; 72 73 /** Target hardware address */ 73 uint8_t target_hw_addr[ETH_ADDR_SIZE];74 addr48_t target_hw_addr; 74 75 /** Target protocol address */ 75 uint32_t target_proto_addr;76 addr32_t target_proto_addr; 76 77 } __attribute__((packed)) arp_eth_packet_fmt_t; 77 78 … … 87 88 /** IP Ethertype */ 88 89 enum ether_type { 89 ETYPE_ARP = 0x0806, 90 ETYPE_IP = 0x0800 90 ETYPE_ARP = 0x0806, 91 ETYPE_IP = 0x0800, 92 ETYPE_IPV6 = 0x86DD 91 93 }; 92 93 94 94 95 #endif
Note:
See TracChangeset
for help on using the changeset viewer.