Changeset 973ef9fc in mainline for uspace/srv/net/tl/udp/udp.c
- Timestamp:
- 2010-12-25T21:20:28Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 631ee0c
- Parents:
- 1bfd3d3 (diff), 09178b7f (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/tl/udp/udp.c
r1bfd3d3 r973ef9fc 190 190 * @return The result parameter. 191 191 */ 192 static int udp_release_and_return(packet_t packet, int result)192 static int udp_release_and_return(packet_t *packet, int result) 193 193 { 194 194 pq_release_remote(udp_globals.net_phone, packet_get_id(packet)); … … 217 217 * ip_client_process_packet() function. 218 218 */ 219 static int udp_process_packet(device_id_t device_id, packet_t packet,219 static int udp_process_packet(device_id_t device_id, packet_t *packet, 220 220 services_t error) 221 221 { … … 225 225 udp_header_t *header; 226 226 socket_core_t *socket; 227 packet_t next_packet;227 packet_t *next_packet; 228 228 size_t total_length; 229 229 uint32_t checksum; 230 230 int fragments; 231 packet_t tmp_packet;231 packet_t *tmp_packet; 232 232 icmp_type_t type; 233 233 icmp_code_t code; … … 393 393 fibril_rwlock_write_unlock(&udp_globals.lock); 394 394 async_msg_5(socket->phone, NET_SOCKET_RECEIVED, 395 ( ipcarg_t) socket->socket_id, packet_dimension->content, 0, 0,396 ( ipcarg_t) fragments);395 (sysarg_t) socket->socket_id, packet_dimension->content, 0, 0, 396 (sysarg_t) fragments); 397 397 398 398 return EOK; … … 413 413 * udp_process_packet() function. 414 414 */ 415 static int udp_received_msg(device_id_t device_id, packet_t packet,415 static int udp_received_msg(device_id_t device_id, packet_t *packet, 416 416 services_t receiver, services_t error) 417 417 { … … 458 458 { 459 459 socket_core_t *socket; 460 packet_t packet;461 packet_t next_packet;460 packet_t *packet; 461 packet_t *next_packet; 462 462 udp_header_t *header; 463 463 int index; … … 614 614 socket_core_t *socket; 615 615 int packet_id; 616 packet_t packet;616 packet_t *packet; 617 617 udp_header_t *header; 618 618 struct sockaddr *addr; … … 742 742 743 743 /* Process the call */ 744 switch (IPC_GET_ METHOD(call)) {744 switch (IPC_GET_IMETHOD(call)) { 745 745 case IPC_M_PHONE_HUNGUP: 746 746 keep_on_going = false; … … 771 771 772 772 case NET_SOCKET_BIND: 773 res = data_receive((void **) &addr, &addrlen); 773 res = async_data_write_accept((void **) &addr, false, 774 0, 0, 0, &addrlen); 774 775 if (res != EOK) 775 776 break; … … 784 785 785 786 case NET_SOCKET_SENDTO: 786 res = data_receive((void **) &addr, &addrlen); 787 res = async_data_write_accept((void **) &addr, false, 788 0, 0, 0, &addrlen); 787 789 if (res != EOK) 788 790 break; … … 861 863 ipc_call_t *answer, int *answer_count) 862 864 { 863 packet_t packet;865 packet_t *packet; 864 866 int rc; 865 867 866 868 *answer_count = 0; 867 869 868 switch (IPC_GET_ METHOD(*call)) {870 switch (IPC_GET_IMETHOD(*call)) { 869 871 case NET_TL_RECEIVED: 870 872 rc = packet_translate_remote(udp_globals.net_phone, &packet, … … 913 915 * result. 914 916 */ 915 if ((IPC_GET_ METHOD(call) == IPC_M_PHONE_HUNGUP) ||917 if ((IPC_GET_IMETHOD(call) == IPC_M_PHONE_HUNGUP) || 916 918 (res == EHANGUP)) 917 919 return;
Note:
See TracChangeset
for help on using the changeset viewer.