Changeset b7fd2a0 in mainline for uspace/srv/net/ethip/arp.c
- Timestamp:
- 2018-01-13T03:10:29Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a53ed3a
- Parents:
- 36f0738
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/ethip/arp.c
r36f0738 rb7fd2a0 50 50 #define ARP_REQUEST_TIMEOUT (3 * 1000 * 1000) 51 51 52 static int arp_send_packet(ethip_nic_t *nic, arp_eth_packet_t *packet);52 static errno_t 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 int rc = arp_pdu_decode(frame->data, frame->size, &packet);59 errno_t rc = arp_pdu_decode(frame->data, frame->size, &packet); 60 60 if (rc != EOK) 61 61 return; … … 94 94 } 95 95 96 int arp_translate(ethip_nic_t *nic, addr32_t src_addr, addr32_t ip_addr,96 errno_t 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 int rc = atrans_lookup(ip_addr, mac_addr);105 errno_t rc = atrans_lookup(ip_addr, mac_addr); 106 106 if (rc == EOK) 107 107 return EOK; … … 122 122 } 123 123 124 static int arp_send_packet(ethip_nic_t *nic, arp_eth_packet_t *packet)124 static errno_t arp_send_packet(ethip_nic_t *nic, arp_eth_packet_t *packet) 125 125 { 126 int rc;126 errno_t rc; 127 127 void *pdata; 128 128 size_t psize;
Note:
See TracChangeset
for help on using the changeset viewer.