numam-dpdk/examples/ip_pipeline
Jasvinder Singh 7959831b4d examples/ip_pipeline: replace strncpy with strlcpy
The destination string may not have a null termination if
the source string's length is equal to the sizeof.

Fix by replacing strncpy with strlcpy that guarantees NULL-termination.

[merged several commits]

Coverty issue: 272606
Fixes: d75c371e9b ("examples/ip_pipeline: add pipeline object")
Signed-off-by: Jasvinder Singh <jasvinder.singh@intel.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>

Coverty issue: 272594
Fixes: 133c2c6565 ("examples/ip_pipeline: add link object")
Signed-off-by: Jasvinder Singh <jasvinder.singh@intel.com>

Coverty issue: 272603
Fixes: 2f74ae28e2 ("examples/ip_pipeline: add tap object")
Signed-off-by: Jasvinder Singh <jasvinder.singh@intel.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>

Coverity issue: 272588
Fixes: 6bfe74f8c9 ("examples/ip_pipeline: add mempool object")
Signed-off-by: Kevin Laatz <kevin.laatz@intel.com>
Reviewed-by: Jasvinder Singh <jasvinder.singh@intel.com>

Coverity issue: 272592
Fixes: 25961ff3bc ("examples/ip_pipeline: add traffic manager object")
Signed-off-by: Kevin Laatz <kevin.laatz@intel.com>
Reviewed-by: Jasvinder Singh <jasvinder.singh@intel.com>

Coverity issue: 272562
Fixes: 9a408cc8ac ("examples/ip_pipeline: add KNI object")
Signed-off-by: Reshma Pattan <reshma.pattan@intel.com>
Reviewed-by: Jasvinder Singh <jasvinder.singh@intel.com>

Coverity issue: 272580
Fixes: 719374345c ("examples/ip_pipeline: add action profile objects")
Signed-off-by: Reshma Pattan <reshma.pattan@intel.com>
Reviewed-by: Jasvinder Singh <jasvinder.singh@intel.com>

Coverity issue: 272572
Fixes: 719374345c ("examples/ip_pipeline: add action profile objects")
Signed-off-by: Fan Zhang <roy.fan.zhang@intel.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>

Coverity issue: 272563
Fixes: 8245472c58 ("examples/ip_pipeline: add sw queue object")
Signed-off-by: Fan Zhang <roy.fan.zhang@intel.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
2018-05-08 13:35:10 +02:00
..
examples examples/ip_pipeline: add ECMP route example 2018-04-05 19:00:23 +02:00
action.c examples/ip_pipeline: replace strncpy with strlcpy 2018-05-08 13:35:10 +02:00
action.h examples/ip_pipeline: add load balance action command 2018-04-05 19:00:21 +02:00
cli.c examples/ip_pipeline: remove dead code in table command 2018-05-08 13:16:10 +02:00
cli.h examples/ip_pipeline: add pipeline object 2018-04-05 19:00:08 +02:00
common.h examples/ip_pipeline: add mempool object 2018-04-05 18:23:49 +02:00
conn.c examples/ip_pipeline: fix leak on connection error 2018-05-08 13:06:16 +02:00
conn.h examples/ip_pipeline: add CLI interface 2018-04-05 18:23:49 +02:00
hash_func_arm64.h examples/ip_pipeline: remove master pipeline 2018-04-04 12:26:22 +02:00
hash_func.h examples/ip_pipeline: remove master pipeline 2018-04-04 12:26:22 +02:00
kni.c examples/ip_pipeline: replace strncpy with strlcpy 2018-05-08 13:35:10 +02:00
kni.h examples/ip_pipeline: add KNI object 2018-04-05 19:00:00 +02:00
link.c examples/ip_pipeline: replace strncpy with strlcpy 2018-05-08 13:35:10 +02:00
link.h examples/ip_pipeline: add link object 2018-04-05 18:23:50 +02:00
main.c examples/ip_pipeline: add thread runtime 2018-04-05 19:00:17 +02:00
Makefile examples/ip_pipeline: skip in FreeBSD build 2018-04-10 14:41:01 +02:00
mempool.c examples/ip_pipeline: replace strncpy with strlcpy 2018-05-08 13:35:10 +02:00
mempool.h examples/ip_pipeline: add mempool object 2018-04-05 18:23:49 +02:00
meson.build examples/ip_pipeline: add threads 2018-04-05 19:00:17 +02:00
parser.c examples/ip_pipeline: remove infra code 2018-04-05 18:23:41 +02:00
parser.h examples/ip_pipeline: remove infra code 2018-04-05 18:23:41 +02:00
pipeline.c examples/ip_pipeline: replace strncpy with strlcpy 2018-05-08 13:35:10 +02:00
pipeline.h examples/ip_pipeline: add load balance action command 2018-04-05 19:00:21 +02:00
swq.c examples/ip_pipeline: replace strncpy with strlcpy 2018-05-08 13:35:10 +02:00
swq.h examples/ip_pipeline: add sw queue object 2018-04-05 18:23:50 +02:00
tap.c examples/ip_pipeline: replace strncpy with strlcpy 2018-05-08 13:35:10 +02:00
tap.h examples/ip_pipeline: add tap object 2018-04-05 18:23:51 +02:00
thread.c examples/ip_pipeline: add load balance action command 2018-04-05 19:00:21 +02:00
thread.h examples/ip_pipeline: add enable and disable commands 2018-04-05 19:00:17 +02:00
tmgr.c examples/ip_pipeline: replace strncpy with strlcpy 2018-05-08 13:35:10 +02:00
tmgr.h examples/ip_pipeline: add traffic manager object 2018-04-05 18:23:51 +02:00