Changeset 58e8646 in mainline for uspace/lib/c


Ignore:
Timestamp:
2017-08-23T18:37:21Z (8 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.

Location:
uspace/lib/c
Files:
3 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 *
  • uspace/lib/c/include/inet/udp.h

    r853802e r58e8646  
    9595extern int udp_assoc_create(udp_t *, inet_ep2_t *, udp_cb_t *, void *,
    9696    udp_assoc_t **);
     97extern int udp_assoc_set_nolocal(udp_assoc_t *);
    9798extern void udp_assoc_destroy(udp_assoc_t *);
    9899extern int udp_assoc_send_msg(udp_assoc_t *, inet_ep_t *, void *, size_t);
  • uspace/lib/c/include/ipc/udp.h

    r853802e r58e8646  
    4242        UDP_ASSOC_CREATE,
    4343        UDP_ASSOC_DESTROY,
     44        UDP_ASSOC_SET_NOLOCAL,
    4445        UDP_ASSOC_SEND_MSG,
    4546        UDP_RMSG_INFO,
Note: See TracChangeset for help on using the changeset viewer.