Changes in uspace/srv/net/loopip/loopip.c [417a2ba1:a17356fd] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/loopip/loopip.c
r417a2ba1 ra17356fd 40 40 #include <inet/iplink_srv.h> 41 41 #include <inet/addr.h> 42 #include <net/socket_codes.h> 42 43 #include <io/log.h> 43 44 #include <loc.h> … … 75 76 link_t link; 76 77 77 /* XXX Version should be part of SDU */ 78 ip_ver_t ver; 78 uint16_t af; 79 79 iplink_recv_sdu_t sdu; 80 80 } rqueue_entry_t; … … 88 88 list_get_instance(link, rqueue_entry_t, link); 89 89 90 (void) iplink_ev_recv(&loopip_iplink, &rqe->sdu, rqe-> ver);90 (void) iplink_ev_recv(&loopip_iplink, &rqe->sdu, rqe->af); 91 91 92 92 free(rqe->sdu.data); … … 174 174 * Clone SDU 175 175 */ 176 rqe-> ver = ip_v4;176 rqe->af = AF_INET; 177 177 rqe->sdu.data = malloc(sdu->size); 178 178 if (rqe->sdu.data == NULL) { … … 203 203 * Clone SDU 204 204 */ 205 rqe-> ver = ip_v6;205 rqe->af = AF_INET6; 206 206 rqe->sdu.data = malloc(sdu->size); 207 207 if (rqe->sdu.data == NULL) {
Note:
See TracChangeset
for help on using the changeset viewer.