Changeset 41811af in mainline for uspace/srv/net/tl/udp/udp.c
- Timestamp:
- 2011-06-10T10:14:26Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ab547063
- Parents:
- 9536e6e (diff), 390d80d (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
r9536e6e r41811af 37 37 38 38 #include <async.h> 39 #include <async_obsolete.h> 39 40 #include <fibril_synch.h> 40 41 #include <malloc.h> … … 69 70 #include "udp.h" 70 71 #include "udp_header.h" 72 73 // FIXME: remove this header 74 #include <kernel/ipc/ipc_methods.h> 71 75 72 76 /** UDP module name. */ … … 299 303 /* Notify the destination socket */ 300 304 fibril_rwlock_write_unlock(&udp_globals.lock); 301 async_ msg_5(socket->phone, NET_SOCKET_RECEIVED,305 async_obsolete_msg_5(socket->phone, NET_SOCKET_RECEIVED, 302 306 (sysarg_t) socket->socket_id, packet_dimension->content, 0, 0, 303 307 (sysarg_t) fragments); … … 748 752 { 749 753 int res; 750 bool keep_on_going = true;751 754 socket_cores_t local_sockets; 752 755 int app_phone = IPC_GET_PHONE(call); … … 773 776 socket_cores_initialize(&local_sockets); 774 777 775 while ( keep_on_going) {778 while (true) { 776 779 777 780 /* Answer the call */ … … 783 786 /* Get the next call */ 784 787 callid = async_get_call(&call); 788 789 if (!IPC_GET_IMETHOD(call)) { 790 res = EHANGUP; 791 break; 792 } 785 793 786 794 /* Process the call */ 787 795 switch (IPC_GET_IMETHOD(call)) { 788 case IPC_M_PHONE_HUNGUP:789 keep_on_going = false;790 res = EHANGUP;791 break;792 793 796 case NET_SOCKET: 794 797 socket_id = SOCKET_GET_SOCKET_ID(call); … … 880 883 881 884 /* Release the application phone */ 882 async_ hangup(app_phone);885 async_obsolete_hangup(app_phone); 883 886 884 887 /* Release all local sockets */
Note:
See TracChangeset
for help on using the changeset viewer.