Changeset 58e8646 in mainline for uspace/lib/c/generic/inet/udp.c


Ignore:
Timestamp:
2017-08-23T18:37:21Z (7 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
258d77e
Parents:
853802e
Message:

Fix DNS resolution not working due to missing local address.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/inet/udp.c

    r853802e r58e8646  
    227227}
    228228
     229/** Set UDP association sending messages with no local address
     230 *
     231 * @param assoc Association
     232 * @param flags Flags
     233 */
     234int udp_assoc_set_nolocal(udp_assoc_t *assoc)
     235{
     236        async_exch_t *exch;
     237
     238        exch = async_exchange_begin(assoc->udp->sess);
     239        sysarg_t rc = async_req_1_0(exch, UDP_ASSOC_SET_NOLOCAL, assoc->id);
     240        async_exchange_end(exch);
     241
     242        return rc;
     243}
     244
    229245/** Send message via UDP association.
    230246 *
Note: See TracChangeset for help on using the changeset viewer.