Changes in uspace/srv/net/ethip/ethip.h [d8b47eca:69a93df7] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/ethip/ethip.h
rd8b47eca r69a93df7 41 41 #include <async.h> 42 42 #include <inet/iplink_srv.h> 43 #include <inet/addr.h>44 43 #include <loc.h> 45 44 #include <sys/types.h> 46 45 46 #define MAC48_BROADCAST 0xffffffffffff 47 47 48 typedef struct { 48 49 link_t addr_list; 49 i net_addr_t addr;50 iplink_srv_addr_t addr; 50 51 } 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; 51 58 52 59 typedef struct ethip_nic { … … 60 67 61 68 /** MAC address */ 62 addr48_t mac_addr;69 mac48_addr_t mac_addr; 63 70 /** List of IP addresses configured on this link */ 64 71 list_t addr_list; /* of ethip_link_addr_t */ … … 68 75 typedef struct { 69 76 /** Destination Address */ 70 addr48_t dest;77 mac48_addr_t dest; 71 78 /** Source Address */ 72 addr48_t src;79 mac48_addr_t src; 73 80 /** Ethertype or Length */ 74 81 uint16_t etype_len; … … 95 102 arp_opcode_t opcode; 96 103 /** Sender hardware address */ 97 addr48_t sender_hw_addr;104 mac48_addr_t sender_hw_addr; 98 105 /** Sender protocol address */ 99 addr32_t sender_proto_addr;106 iplink_srv_addr_t sender_proto_addr; 100 107 /** Target hardware address */ 101 addr48_t target_hw_addr;108 mac48_addr_t target_hw_addr; 102 109 /** Target protocol address */ 103 addr32_t target_proto_addr;110 iplink_srv_addr_t target_proto_addr; 104 111 } arp_eth_packet_t; 105 112 … … 107 114 typedef struct { 108 115 link_t atrans_list; 109 addr32_t ip_addr;110 addr48_t mac_addr;116 iplink_srv_addr_t ip_addr; 117 mac48_addr_t mac_addr; 111 118 } ethip_atrans_t; 112 119
Note:
See TracChangeset
for help on using the changeset viewer.