Changes in uspace/srv/net/il/ip/ip.c [7880d58:7e752b2] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/il/ip/ip.c
r7880d58 r7e752b2 430 430 // binds the netif service which also initializes the device 431 431 ip_netif->phone = nil_bind_service(ip_netif->service, 432 ( sysarg_t) ip_netif->device_id, SERVICE_IP,432 (ipcarg_t) ip_netif->device_id, SERVICE_IP, 433 433 ip_globals.client_connection); 434 434 if (ip_netif->phone < 0) { … … 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); … … 1900 1902 1901 1903 *answer_count = 0; 1902 switch (IPC_GET_ IMETHOD(*call)) {1904 switch (IPC_GET_METHOD(*call)) { 1903 1905 case IPC_M_PHONE_HUNGUP: 1904 1906 return EOK; … … 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; … … 2024 2025 * result. 2025 2026 */ 2026 if ((IPC_GET_ IMETHOD(call) == IPC_M_PHONE_HUNGUP) ||2027 if ((IPC_GET_METHOD(call) == IPC_M_PHONE_HUNGUP) || 2027 2028 (res == EHANGUP)) { 2028 2029 return;
Note:
See TracChangeset
for help on using the changeset viewer.