Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/net/loopip/loopip.c

    ra17356fd r417a2ba1  
    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.