Ignore:
File:
1 edited

Legend:

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

    r417a2ba1 ra17356fd  
    4040#include <inet/iplink_srv.h>
    4141#include <inet/addr.h>
     42#include <net/socket_codes.h>
    4243#include <io/log.h>
    4344#include <loc.h>
     
    7576        link_t link;
    7677       
    77         /* XXX Version should be part of SDU */
    78         ip_ver_t ver;
     78        uint16_t af;
    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->ver);
     90                (void) iplink_ev_recv(&loopip_iplink, &rqe->sdu, rqe->af);
    9191               
    9292                free(rqe->sdu.data);
     
    174174         * Clone SDU
    175175         */
    176         rqe->ver = ip_v4;
     176        rqe->af = AF_INET;
    177177        rqe->sdu.data = malloc(sdu->size);
    178178        if (rqe->sdu.data == NULL) {
     
    203203         * Clone SDU
    204204         */
    205         rqe->ver = ip_v6;
     205        rqe->af = AF_INET6;
    206206        rqe->sdu.data = malloc(sdu->size);
    207207        if (rqe->sdu.data == NULL) {
Note: See TracChangeset for help on using the changeset viewer.