Changeset 0773396 in mainline for uspace/srv/net/loopip/loopip.c


Ignore:
Timestamp:
2013-12-25T13:05:25Z (10 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
bc54126c
Parents:
f4a47e52 (diff), 6946f23 (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/loopip/loopip.c

    rf4a47e52 r0773396  
    4040#include <inet/iplink_srv.h>
    4141#include <inet/addr.h>
    42 #include <net/socket_codes.h>
    4342#include <io/log.h>
    4443#include <loc.h>
     
    7675        link_t link;
    7776       
    78         uint16_t af;
     77        /* XXX Version should be part of SDU */
     78        ip_ver_t ver;
    7979        iplink_recv_sdu_t sdu;
    8080} rqueue_entry_t;
     
    8888                    list_get_instance(link, rqueue_entry_t, link);
    8989               
    90                 (void) iplink_ev_recv(&loopip_iplink, &rqe->sdu, rqe->af);
     90                (void) iplink_ev_recv(&loopip_iplink, &rqe->sdu, rqe->ver);
    9191               
    9292                free(rqe->sdu.data);
     
    174174         * Clone SDU
    175175         */
    176         rqe->af = AF_INET;
     176        rqe->ver = ip_v4;
    177177        rqe->sdu.data = malloc(sdu->size);
    178178        if (rqe->sdu.data == NULL) {
     
    203203         * Clone SDU
    204204         */
    205         rqe->af = AF_INET6;
     205        rqe->ver = ip_v6;
    206206        rqe->sdu.data = malloc(sdu->size);
    207207        if (rqe->sdu.data == NULL) {
Note: See TracChangeset for help on using the changeset viewer.