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
mem: fix potential underflow on mem size calculation
[dpdk.git]
/
examples
/
ip_pipeline
/
tap.c
diff --git
a/examples/ip_pipeline/tap.c
b/examples/ip_pipeline/tap.c
index
a0f6086
..
11e4ad2
100644
(file)
--- a/
examples/ip_pipeline/tap.c
+++ b/
examples/ip_pipeline/tap.c
@@
-15,6
+15,8
@@
#include <string.h>
#include <unistd.h>
#include <string.h>
#include <unistd.h>
+#include <rte_string_fns.h>
+
#include "tap.h"
#define TAP_DEV "/dev/net/tun"
#include "tap.h"
#define TAP_DEV "/dev/net/tun"
@@
-88,7
+90,7
@@
tap_create(const char *name)
return NULL;
}
/* Node fill in */
return NULL;
}
/* Node fill in */
- str
n
cpy(tap->name, name, sizeof(tap->name));
+ str
l
cpy(tap->name, name, sizeof(tap->name));
tap->fd = fd;
/* Node add to list */
tap->fd = fd;
/* Node add to list */