Changeset bc38578 in mainline for uspace/srv/ethip/ethip.c


Ignore:
Timestamp:
2012-02-06T16:12:58Z (12 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ceba4bed
Parents:
06295a9
Message:

Identify incoming IP link connections.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/ethip/ethip.c

    r06295a9 rbc38578  
    106106        }
    107107
     108        nic->iplink_sid = sid;
     109
    108110        rc = loc_category_get_id("iplink", &iplink_cat, IPC_FLAG_BLOCKING);
    109111        if (rc != EOK) {
     
    128130static void ethip_client_conn(ipc_callid_t iid, ipc_call_t *icall, void *arg)
    129131{
    130         log_msg(LVL_DEBUG, "ethip_client_conn(%u)", (unsigned) IPC_GET_ARG1(*icall));
    131         if (0) iplink_conn(iid, icall, NULL);
     132        ethip_nic_t *nic;
     133        service_id_t sid;
     134
     135        sid = (service_id_t)IPC_GET_ARG1(*icall);
     136        log_msg(LVL_DEBUG, "ethip_client_conn(%u)", (unsigned)sid);
     137        nic = ethip_nic_find_by_iplink_sid(sid);
     138        if (nic == NULL) {
     139                log_msg(LVL_WARN, "Uknown service ID.");
     140                return;
     141        }
     142
     143        iplink_conn(iid, icall, &nic->iplink);
    132144}
    133145
Note: See TracChangeset for help on using the changeset viewer.