Changeset 03c971f in mainline for uspace/srv/net/ethip/ethip.h
- Timestamp:
- 2013-08-15T14:20:16Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- bb2a5b2
- Parents:
- f2c19b0 (diff), 2921602 (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
rf2c19b0 r03c971f 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 link_t addr_list;50 i plink_srv_addr_t addr;48 link_t link; 49 inet_addr_t addr; 51 50 } ethip_link_addr_t; 52 51 53 /** IEEE MAC-48 identifier */54 typedef struct {55 /** MAC Address (in lowest 48 bits) */56 uint64_t addr;57 } mac48_addr_t;58 59 52 typedef struct ethip_nic { 60 link_t nic_list;53 link_t link; 61 54 service_id_t svc_id; 62 55 char *svc_name; … … 67 60 68 61 /** MAC address */ 69 mac48_addr_t mac_addr; 70 /** List of IP addresses configured on this link */ 71 list_t addr_list; /* of ethip_link_addr_t */ 62 addr48_t mac_addr; 63 64 /** 65 * List of IP addresses configured on this link 66 * (of the type ethip_link_addr_t) 67 */ 68 list_t addr_list; 72 69 } ethip_nic_t; 73 70 … … 75 72 typedef struct { 76 73 /** Destination Address */ 77 mac48_addr_t dest;74 addr48_t dest; 78 75 /** Source Address */ 79 mac48_addr_t src;76 addr48_t src; 80 77 /** Ethertype or Length */ 81 78 uint16_t etype_len; … … 102 99 arp_opcode_t opcode; 103 100 /** Sender hardware address */ 104 mac48_addr_t sender_hw_addr;101 addr48_t sender_hw_addr; 105 102 /** Sender protocol address */ 106 iplink_srv_addr_t sender_proto_addr;103 addr32_t sender_proto_addr; 107 104 /** Target hardware address */ 108 mac48_addr_t target_hw_addr;105 addr48_t target_hw_addr; 109 106 /** Target protocol address */ 110 iplink_srv_addr_t target_proto_addr;107 addr32_t target_proto_addr; 111 108 } arp_eth_packet_t; 112 109 … … 114 111 typedef struct { 115 112 link_t atrans_list; 116 iplink_srv_addr_t ip_addr;117 mac48_addr_t mac_addr;113 addr32_t ip_addr; 114 addr48_t mac_addr; 118 115 } ethip_atrans_t; 119 116
Note:
See TracChangeset
for help on using the changeset viewer.