Changeset 98abd40 in mainline for uspace/srv/net/ethip/ethip.h
- Timestamp:
- 2013-07-06T21:57:22Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c8bb1633, cdc8a391
- Parents:
- b8e72fd1 (diff), 507c6f3 (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/ethip.h
rb8e72fd1 r98abd40 41 41 #include <async.h> 42 42 #include <inet/iplink_srv.h> 43 #include <inet/addr.h> 43 44 #include <loc.h> 44 45 #include <sys/types.h> 45 46 46 #define MAC48_BROADCAST 0xffffffffffff47 48 47 typedef struct { 49 48 link_t addr_list; 50 i plink_srv_addr_t addr;49 inet_addr_t addr; 51 50 } ethip_link_addr_t; 52 53 /** IEEE MAC-48 identifier */54 typedef struct {55 /** MAC Address (in lowest 48 bits) */56 uint64_t addr;57 } mac48_addr_t;58 51 59 52 typedef struct ethip_nic { … … 67 60 68 61 /** MAC address */ 69 mac48_addr_t mac_addr;62 addr48_t mac_addr; 70 63 /** List of IP addresses configured on this link */ 71 64 list_t addr_list; /* of ethip_link_addr_t */ … … 75 68 typedef struct { 76 69 /** Destination Address */ 77 mac48_addr_t dest;70 addr48_t dest; 78 71 /** Source Address */ 79 mac48_addr_t src;72 addr48_t src; 80 73 /** Ethertype or Length */ 81 74 uint16_t etype_len; … … 102 95 arp_opcode_t opcode; 103 96 /** Sender hardware address */ 104 mac48_addr_t sender_hw_addr;97 addr48_t sender_hw_addr; 105 98 /** Sender protocol address */ 106 iplink_srv_addr_t sender_proto_addr;99 addr32_t sender_proto_addr; 107 100 /** Target hardware address */ 108 mac48_addr_t target_hw_addr;101 addr48_t target_hw_addr; 109 102 /** Target protocol address */ 110 iplink_srv_addr_t target_proto_addr;103 addr32_t target_proto_addr; 111 104 } arp_eth_packet_t; 112 105 … … 114 107 typedef struct { 115 108 link_t atrans_list; 116 iplink_srv_addr_t ip_addr;117 mac48_addr_t mac_addr;109 addr32_t ip_addr; 110 addr48_t mac_addr; 118 111 } ethip_atrans_t; 119 112
Note:
See TracChangeset
for help on using the changeset viewer.