Changes in uspace/srv/net/il/ip/ip.c [7880d58:228e490] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/il/ip/ip.c
r7880d58 r228e490 442 442 if (route) { 443 443 address.value = (char *) &route->address.s_addr; 444 address.length = sizeof(in_addr_t);444 address.length = CONVERT_SIZE(in_addr_t, char, 1); 445 445 446 446 rc = arp_device_req(ip_netif->arp->phone, … … 639 639 if (destination) { 640 640 rc = packet_set_addr(packet, NULL, (uint8_t *) destination->value, 641 destination->length);641 CONVERT_SIZE(char, uint8_t, destination->length)); 642 642 } else { 643 643 rc = packet_set_addr(packet, NULL, NULL, 0); … … 687 687 rc = packet_set_addr(next, NULL, 688 688 (uint8_t *) destination->value, 689 destination->length); 689 CONVERT_SIZE(char, uint8_t, 690 destination->length)); 690 691 if (rc != EOK) { 691 692 free(last_header); … … 717 718 rc = packet_set_addr(next, NULL, 718 719 (uint8_t *) destination->value, 719 destination->length);720 CONVERT_SIZE(char, uint8_t, destination->length)); 720 721 if (rc != EOK) { 721 722 free(last_header); … … 1005 1006 destination.value = route->gateway.s_addr ? 1006 1007 (char *) &route->gateway.s_addr : (char *) &dest.s_addr; 1007 destination.length = sizeof(dest.s_addr);1008 destination.length = CONVERT_SIZE(dest.s_addr, char, 1); 1008 1009 1009 1010 rc = arp_translate_req(netif->arp->phone, netif->device_id, … … 1757 1758 // clear the ARP mapping if any 1758 1759 address.value = (char *) &header->destination_address; 1759 address.length = sizeof(header->destination_address); 1760 address.length = CONVERT_SIZE(uint8_t, char, 1761 sizeof(header->destination_address)); 1760 1762 arp_clear_address_req(netif->arp->phone, 1761 1763 netif->device_id, SERVICE_IP, &address); … … 1949 1951 1950 1952 case NET_IP_GET_ROUTE: 1951 rc = async_data_write_accept((void **) &addr, false, 0, 0, 0, 1952 &addrlen); 1953 rc = data_receive((void **) &addr, &addrlen); 1953 1954 if (rc != EOK) 1954 1955 return rc;
Note:
See TracChangeset
for help on using the changeset viewer.