~jsvoboda/helenos/dnsr

« back to all changes in this revision

Viewing changes to uspace/srv/net/inetsrv/addrobj.c

  • Committer: Jiri Svoboda
  • Date: 2012-08-12 22:16:58 UTC
  • Revision ID: jiri@wiwaxia-20120812221658-usym3jitzbv6zvly
Send proper local destination to link layer (fixes sending through router).

Show diffs side-by-side

added added

removed removed

Lines of Context:
220
220
        inet_addr_t *ldest_addr;
221
221
 
222
222
        lsrc_addr.ipv4 = addr->naddr.ipv4;
223
 
        ldest_addr = &dgram->dest;
 
223
        ldest_addr = ldest;
224
224
 
225
225
        return inet_link_send_dgram(addr->ilink, &lsrc_addr, ldest_addr, dgram,
226
226
            proto, ttl, df);