l2tpv3.c (328b3b6c44c17d94df115ed1851f54a0bd59a471) | l2tpv3.c (a30ecde6e795682d1473c45acae66a60a76fca2f) |
---|---|
1/* 2 * QEMU System Emulator 3 * 4 * Copyright (c) 2003-2008 Fabrice Bellard 5 * Copyright (c) 2012-2014 Cisco Systems 6 * 7 * Permission is hereby granted, free of charge, to any person obtaining a copy 8 * of this software and associated documentation files (the "Software"), to deal --- 522 unchanged lines hidden (view full) --- 531 .receive = net_l2tpv3_receive_dgram, 532 .receive_iov = net_l2tpv3_receive_dgram_iov, 533 .poll = l2tpv3_poll, 534 .cleanup = net_l2tpv3_cleanup, 535}; 536 537int net_init_l2tpv3(const NetClientOptions *opts, 538 const char *name, | 1/* 2 * QEMU System Emulator 3 * 4 * Copyright (c) 2003-2008 Fabrice Bellard 5 * Copyright (c) 2012-2014 Cisco Systems 6 * 7 * Permission is hereby granted, free of charge, to any person obtaining a copy 8 * of this software and associated documentation files (the "Software"), to deal --- 522 unchanged lines hidden (view full) --- 531 .receive = net_l2tpv3_receive_dgram, 532 .receive_iov = net_l2tpv3_receive_dgram_iov, 533 .poll = l2tpv3_poll, 534 .cleanup = net_l2tpv3_cleanup, 535}; 536 537int net_init_l2tpv3(const NetClientOptions *opts, 538 const char *name, |
539 NetClientState *peer) | 539 NetClientState *peer, Error **errp) |
540{ | 540{ |
541 542 | 541 /* FIXME error_setg(errp, ...) on failure */ |
543 const NetdevL2TPv3Options *l2tpv3; 544 NetL2TPV3State *s; 545 NetClientState *nc; 546 int fd = -1, gairet; 547 struct addrinfo hints; 548 struct addrinfo *result = NULL; 549 char *srcport, *dstport; 550 --- 205 unchanged lines hidden --- | 542 const NetdevL2TPv3Options *l2tpv3; 543 NetL2TPV3State *s; 544 NetClientState *nc; 545 int fd = -1, gairet; 546 struct addrinfo hints; 547 struct addrinfo *result = NULL; 548 char *srcport, *dstport; 549 --- 205 unchanged lines hidden --- |