1*748408edSchristos /* 2*748408edSchristos * Copyright (C) 2018 jingle YANG. All rights reserved. 3*748408edSchristos * 4*748408edSchristos * Redistribution and use in source and binary forms, with or without 5*748408edSchristos * modification, are permitted provided that the following conditions 6*748408edSchristos * are met: 7*748408edSchristos * 8*748408edSchristos * 1. Redistributions of source code must retain the above copyright 9*748408edSchristos * notice, this list of conditions and the following disclaimer. 10*748408edSchristos * 2. Redistributions in binary form must reproduce the above copyright 11*748408edSchristos * notice, this list of conditions and the following disclaimer in the 12*748408edSchristos * documentation and/or other materials provided with the distribution. 13*748408edSchristos * 14*748408edSchristos * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS''AND 15*748408edSchristos * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 16*748408edSchristos * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 17*748408edSchristos * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 18*748408edSchristos * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19*748408edSchristos * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20*748408edSchristos * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21*748408edSchristos * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22*748408edSchristos * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23*748408edSchristos * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24*748408edSchristos * SUCH DAMAGE. 25*748408edSchristos */ 26*748408edSchristos 27*748408edSchristos pcap_t *pcap_dpdk_create(const char *, char *, int *); 28*748408edSchristos int pcap_dpdk_findalldevs(pcap_if_list_t *devlistp, char *errbuf); 29