Changeset 41811af in mainline for uspace/srv/net/tl/udp/udp.c


Ignore:
Timestamp:
2011-06-10T10:14:26Z (14 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
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.
Message:

Merge mainline

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/net/tl/udp/udp.c

    r9536e6e r41811af  
    3737
    3838#include <async.h>
     39#include <async_obsolete.h>
    3940#include <fibril_synch.h>
    4041#include <malloc.h>
     
    6970#include "udp.h"
    7071#include "udp_header.h"
     72
     73// FIXME: remove this header
     74#include <kernel/ipc/ipc_methods.h>
    7175
    7276/** UDP module name. */
     
    299303        /* Notify the destination socket */
    300304        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,
    302306            (sysarg_t) socket->socket_id, packet_dimension->content, 0, 0,
    303307            (sysarg_t) fragments);
     
    748752{
    749753        int res;
    750         bool keep_on_going = true;
    751754        socket_cores_t local_sockets;
    752755        int app_phone = IPC_GET_PHONE(call);
     
    773776        socket_cores_initialize(&local_sockets);
    774777
    775         while (keep_on_going) {
     778        while (true) {
    776779
    777780                /* Answer the call */
     
    783786                /* Get the next call */
    784787                callid = async_get_call(&call);
     788               
     789                if (!IPC_GET_IMETHOD(call)) {
     790                        res = EHANGUP;
     791                        break;
     792                }
    785793
    786794                /* Process the call */
    787795                switch (IPC_GET_IMETHOD(call)) {
    788                 case IPC_M_PHONE_HUNGUP:
    789                         keep_on_going = false;
    790                         res = EHANGUP;
    791                         break;
    792 
    793796                case NET_SOCKET:
    794797                        socket_id = SOCKET_GET_SOCKET_ID(call);
     
    880883
    881884        /* Release the application phone */
    882         async_hangup(app_phone);
     885        async_obsolete_hangup(app_phone);
    883886
    884887        /* Release all local sockets */
Note: See TracChangeset for help on using the changeset viewer.