Changeset d8b47eca in mainline for uspace/srv/net/ethip
- Timestamp:
- 2013-07-03T17:16:44Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 66366470, 882bc4b
- Parents:
- 1d24ad3
- Location:
- uspace/srv/net/ethip
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/ethip/atrans.c
r1d24ad3 rd8b47eca 49 49 static FIBRIL_CONDVAR_INITIALIZE(atrans_cv); 50 50 51 static ethip_atrans_t *atrans_find( uint32_t ip_addr)51 static ethip_atrans_t *atrans_find(addr32_t ip_addr) 52 52 { 53 53 list_foreach(atrans_list, link) { … … 62 62 } 63 63 64 int atrans_add( uint32_t ip_addr, addr48_t mac_addr)64 int atrans_add(addr32_t ip_addr, addr48_t mac_addr) 65 65 { 66 66 ethip_atrans_t *atrans; … … 88 88 } 89 89 90 int atrans_remove( uint32_t ip_addr)90 int atrans_remove(addr32_t ip_addr) 91 91 { 92 92 ethip_atrans_t *atrans; … … 106 106 } 107 107 108 int atrans_lookup( uint32_t ip_addr, addr48_t mac_addr)108 int atrans_lookup(addr32_t ip_addr, addr48_t mac_addr) 109 109 { 110 110 fibril_mutex_lock(&atrans_list_lock); -
uspace/srv/net/ethip/atrans.h
r1d24ad3 rd8b47eca 42 42 #include "ethip.h" 43 43 44 extern int atrans_add( uint32_t, addr48_t);45 extern int atrans_remove( uint32_t);46 extern int atrans_lookup( uint32_t, addr48_t);44 extern int atrans_add(addr32_t, addr48_t); 45 extern int atrans_remove(addr32_t); 46 extern int atrans_lookup(addr32_t, addr48_t); 47 47 extern int atrans_wait_timeout(suseconds_t); 48 48 -
uspace/srv/net/ethip/ethip.h
r1d24ad3 rd8b47eca 97 97 addr48_t sender_hw_addr; 98 98 /** Sender protocol address */ 99 uint32_t sender_proto_addr;99 addr32_t sender_proto_addr; 100 100 /** Target hardware address */ 101 101 addr48_t target_hw_addr; 102 102 /** Target protocol address */ 103 uint32_t target_proto_addr;103 addr32_t target_proto_addr; 104 104 } arp_eth_packet_t; 105 105 … … 107 107 typedef struct { 108 108 link_t atrans_list; 109 uint32_t ip_addr;109 addr32_t ip_addr; 110 110 addr48_t mac_addr; 111 111 } ethip_atrans_t; -
uspace/srv/net/ethip/std.h
r1d24ad3 rd8b47eca 70 70 addr48_t sender_hw_addr; 71 71 /** Sender protocol address */ 72 uint32_t sender_proto_addr;72 addr32_t sender_proto_addr; 73 73 /** Target hardware address */ 74 74 addr48_t target_hw_addr; 75 75 /** Target protocol address */ 76 uint32_t target_proto_addr;76 addr32_t target_proto_addr; 77 77 } __attribute__((packed)) arp_eth_packet_fmt_t; 78 78
Note:
See TracChangeset
for help on using the changeset viewer.