Changeset 774e6d1a in mainline for uspace/srv/net/il/arp/arp.c
- Timestamp:
- 2011-01-09T23:24:53Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 4b86dac
- Parents:
- 3c106e88
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/il/arp/arp.c
r3c106e88 r774e6d1a 457 457 uint8_t *des_proto; 458 458 int rc; 459 459 460 460 length = packet_get_data_length(packet); 461 461 if (length <= sizeof(arp_header_t)) … … 677 677 int 678 678 arp_message_standalone(ipc_callid_t callid, ipc_call_t *call, 679 ipc_call_t *answer, int *answer_count)679 ipc_call_t *answer, size_t *answer_count) 680 680 { 681 681 measured_string_t *address; … … 696 696 return rc; 697 697 698 rc = arp_device_message(IPC_GET_DEVICE( call),699 IPC_GET_SERVICE( call), ARP_GET_NETIF(call), address);698 rc = arp_device_message(IPC_GET_DEVICE(*call), 699 IPC_GET_SERVICE(*call), ARP_GET_NETIF(*call), address); 700 700 if (rc != EOK) { 701 701 free(address); … … 710 710 711 711 fibril_mutex_lock(&arp_globals.lock); 712 rc = arp_translate_message(IPC_GET_DEVICE( call),713 IPC_GET_SERVICE( call), address, &translation);712 rc = arp_translate_message(IPC_GET_DEVICE(*call), 713 IPC_GET_SERVICE(*call), address, &translation); 714 714 free(address); 715 715 free(data); … … 727 727 728 728 case NET_ARP_CLEAR_DEVICE: 729 return arp_clear_device_req(0, IPC_GET_DEVICE( call));729 return arp_clear_device_req(0, IPC_GET_DEVICE(*call)); 730 730 731 731 case NET_ARP_CLEAR_ADDRESS: … … 734 734 return rc; 735 735 736 arp_clear_address_req(0, IPC_GET_DEVICE( call),737 IPC_GET_SERVICE( call), address);736 arp_clear_address_req(0, IPC_GET_DEVICE(*call), 737 IPC_GET_SERVICE(*call), address); 738 738 free(address); 739 739 free(data); … … 750 750 751 751 rc = packet_translate_remote(arp_globals.net_phone, &packet, 752 IPC_GET_PACKET( call));752 IPC_GET_PACKET(*call)); 753 753 if (rc != EOK) 754 754 return rc; … … 757 757 do { 758 758 next = pq_detach(packet); 759 rc = arp_receive_message(IPC_GET_DEVICE( call), packet);759 rc = arp_receive_message(IPC_GET_DEVICE(*call), packet); 760 760 if (rc != 1) { 761 761 pq_release_remote(arp_globals.net_phone, … … 769 769 770 770 case NET_IL_MTU_CHANGED: 771 return arp_mtu_changed_message(IPC_GET_DEVICE( call),772 IPC_GET_MTU( call));771 return arp_mtu_changed_message(IPC_GET_DEVICE(*call), 772 IPC_GET_MTU(*call)); 773 773 } 774 774 … … 791 791 while (true) { 792 792 ipc_call_t answer; 793 int answer_count;793 size_t count; 794 794 795 795 /* Clear the answer structure */ 796 refresh_answer(&answer, & answer_count);796 refresh_answer(&answer, &count); 797 797 798 798 /* Fetch the next message */ … … 802 802 /* Process the message */ 803 803 int res = il_module_message_standalone(callid, &call, &answer, 804 & answer_count);804 &count); 805 805 806 806 /* … … 813 813 814 814 /* Answer the message */ 815 answer_call(callid, res, &answer, answer_count);815 answer_call(callid, res, &answer, count); 816 816 } 817 817 }
Note:
See TracChangeset
for help on using the changeset viewer.