Changeset 0c2d9bb in mainline for uspace/srv/net/udp/assoc.c


Ignore:
Timestamp:
2013-12-25T22:54:29Z (10 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b51cf2c
Parents:
f7a33de (diff), ac36aed (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 changes

File:
1 edited

Legend:

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

    rf7a33de r0c2d9bb  
    186186}
    187187
     188/** Set IP link in association.
     189 *
     190 * @param assoc         Association
     191 * @param iplink        IP link
     192 */
     193void udp_assoc_set_iplink(udp_assoc_t *assoc, service_id_t iplink)
     194{
     195        log_msg(LOG_DEFAULT, LVL_DEBUG, "udp_assoc_set_iplink(%p, %zu)",
     196            assoc, iplink);
     197        fibril_mutex_lock(&assoc->lock);
     198        assoc->ident.iplink = iplink;
     199        fibril_mutex_unlock(&assoc->lock);
     200}
     201
    188202/** Set foreign socket in association.
    189203 *
     
    419433        fibril_mutex_lock(&assoc_list_lock);
    420434       
    421         list_foreach(assoc_list, link) {
    422                 udp_assoc_t *assoc = list_get_instance(link, udp_assoc_t, link);
     435        list_foreach(assoc_list, link, udp_assoc_t, assoc) {
    423436                udp_sockpair_t *asp = &assoc->ident;
    424437               
Note: See TracChangeset for help on using the changeset viewer.