Changes in uspace/srv/net/ethip/arp.c [b7fd2a0:f303f2cf] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/ethip/arp.c
rb7fd2a0 rf303f2cf 50 50 #define ARP_REQUEST_TIMEOUT (3 * 1000 * 1000) 51 51 52 static errno_t arp_send_packet(ethip_nic_t *nic, arp_eth_packet_t *packet);52 static int arp_send_packet(ethip_nic_t *nic, arp_eth_packet_t *packet); 53 53 54 54 void arp_received(ethip_nic_t *nic, eth_frame_t *frame) … … 57 57 58 58 arp_eth_packet_t packet; 59 errno_t rc = arp_pdu_decode(frame->data, frame->size, &packet);59 int rc = arp_pdu_decode(frame->data, frame->size, &packet); 60 60 if (rc != EOK) 61 61 return; … … 94 94 } 95 95 96 errno_t arp_translate(ethip_nic_t *nic, addr32_t src_addr, addr32_t ip_addr,96 int arp_translate(ethip_nic_t *nic, addr32_t src_addr, addr32_t ip_addr, 97 97 addr48_t mac_addr) 98 98 { … … 103 103 } 104 104 105 errno_t rc = atrans_lookup(ip_addr, mac_addr);105 int rc = atrans_lookup(ip_addr, mac_addr); 106 106 if (rc == EOK) 107 107 return EOK; … … 122 122 } 123 123 124 static errno_t arp_send_packet(ethip_nic_t *nic, arp_eth_packet_t *packet)124 static int arp_send_packet(ethip_nic_t *nic, arp_eth_packet_t *packet) 125 125 { 126 errno_t rc;126 int rc; 127 127 void *pdata; 128 128 size_t psize;
Note:
See TracChangeset
for help on using the changeset viewer.