git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
net/dpaa: fix getting link status
[dpdk.git]
/
drivers
/
net
/
softnic
/
rte_eth_softnic_tap.c
diff --git
a/drivers/net/softnic/rte_eth_softnic_tap.c
b/drivers/net/softnic/rte_eth_softnic_tap.c
index
bcc23a9
..
36fe9f0
100644
(file)
--- a/
drivers/net/softnic/rte_eth_softnic_tap.c
+++ b/
drivers/net/softnic/rte_eth_softnic_tap.c
@@
-3,7
+3,7
@@
*/
#include <netinet/in.h>
*/
#include <netinet/in.h>
-#ifdef RTE_EXEC_ENV_LINUX
APP
+#ifdef RTE_EXEC_ENV_LINUX
#include <linux/if.h>
#include <linux/if_tun.h>
#endif
#include <linux/if.h>
#include <linux/if_tun.h>
#endif
@@
-60,7
+60,7
@@
softnic_tap_find(struct pmd_internals *p,
return NULL;
}
return NULL;
}
-#ifndef RTE_EXEC_ENV_LINUX
APP
+#ifndef RTE_EXEC_ENV_LINUX
struct softnic_tap *
softnic_tap_create(struct pmd_internals *p __rte_unused,
struct softnic_tap *
softnic_tap_create(struct pmd_internals *p __rte_unused,
@@
-91,7
+91,7
@@
softnic_tap_create(struct pmd_internals *p,
memset(&ifr, 0, sizeof(ifr));
ifr.ifr_flags = IFF_TAP | IFF_NO_PI; /* No packet information */
memset(&ifr, 0, sizeof(ifr));
ifr.ifr_flags = IFF_TAP | IFF_NO_PI; /* No packet information */
- s
nprintf(ifr.ifr_name, IFNAMSIZ, "%s", name
);
+ s
trlcpy(ifr.ifr_name, name, IFNAMSIZ
);
status = ioctl(fd, TUNSETIFF, (void *)&ifr);
if (status < 0) {
status = ioctl(fd, TUNSETIFF, (void *)&ifr);
if (status < 0) {