summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJunfeng Wang <drenfong.wang@intel.com>2019-09-10 14:53:27 -0400
committerJunfeng Wang <drenfong.wang@intel.com>2019-09-10 15:01:02 -0400
commit6e5bd265d4f8444eba5b181ece713227fafd1934 (patch)
treece7820d00b15caa6cf78ee836035d6fae9b020c1 /src
parent94012c07d414604c05ece9afadda1bb9d92f9482 (diff)
fix dpi_flow_input pkt's Pointer offset
Change-Id: I584c3abac30136c7d106d055c7c96eea9bb94381 Signed-off-by: Junfeng Wang <drenfong.wang@intel.com>
Diffstat (limited to 'src')
-rw-r--r--src/dpi_cli.c2
-rw-r--r--src/dpi_node.c1
2 files changed, 3 insertions, 0 deletions
diff --git a/src/dpi_cli.c b/src/dpi_cli.c
index 4fbc760..5810a27 100644
--- a/src/dpi_cli.c
+++ b/src/dpi_cli.c
@@ -111,6 +111,8 @@ dpi_flow_add_del_command_fn (vlib_main_t * vm,
if (rv < 0)
return clib_error_return (0, "reverse flow error: %d", rv);
+ vlib_cli_output(vm, "dpi flow id\n%u", dpi_flow_id);
+
return 0;
}
diff --git a/src/dpi_node.c b/src/dpi_node.c
index 33774e9..106dd3a 100644
--- a/src/dpi_node.c
+++ b/src/dpi_node.c
@@ -824,6 +824,7 @@ dpi_flow_input_inline (vlib_main_t * vm,
bi0 = to_next[0] = from[0];
b0 = vlib_get_buffer (vm, bi0);
+ vlib_buffer_advance (b0, +(sizeof (ethernet_header_t)));
ip_len0 = vlib_buffer_length_in_chain (vm, b0);
if (is_ip4)