Changeset 417a2ba1 in mainline for uspace/srv/net/loopip/loopip.c
- Timestamp:
- 2013-09-29T22:28:53Z (11 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- d7f2cd6
- Parents:
- 5a324d99
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/loopip/loopip.c
r5a324d99 r417a2ba1 40 40 #include <inet/iplink_srv.h> 41 41 #include <inet/addr.h> 42 #include <net/socket_codes.h>43 42 #include <io/log.h> 44 43 #include <loc.h> … … 76 75 link_t link; 77 76 78 uint16_t af; 77 /* XXX Version should be part of SDU */ 78 ip_ver_t ver; 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-> af);90 (void) iplink_ev_recv(&loopip_iplink, &rqe->sdu, rqe->ver); 91 91 92 92 free(rqe->sdu.data); … … 174 174 * Clone SDU 175 175 */ 176 rqe-> af = AF_INET;176 rqe->ver = ip_v4; 177 177 rqe->sdu.data = malloc(sdu->size); 178 178 if (rqe->sdu.data == NULL) { … … 203 203 * Clone SDU 204 204 */ 205 rqe-> af = AF_INET6;205 rqe->ver = ip_v6; 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.