aboutsummaryrefslogtreecommitdiffstats
path: root/hicn-plugin/src/parser.h
diff options
context:
space:
mode:
Diffstat (limited to 'hicn-plugin/src/parser.h')
-rw-r--r--hicn-plugin/src/parser.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/hicn-plugin/src/parser.h b/hicn-plugin/src/parser.h
index e69a97755..e9f709481 100644
--- a/hicn-plugin/src/parser.h
+++ b/hicn-plugin/src/parser.h
@@ -34,7 +34,6 @@ parse (vlib_buffer_t *pkt, uword size)
int ret = HICN_ERROR_NONE;
- u16 *port;
hicn_lifetime_t *lifetime;
hicn_payload_type_t payload_type;
@@ -43,14 +42,6 @@ parse (vlib_buffer_t *pkt, uword size)
hicn_packet_set_buffer (pkbuf, vlib_buffer_get_current (pkt), size, size);
hicn_packet_analyze (&hicn_get_buffer (pkt)->pkbuf);
- /* get source port*/
- port = &hicn_get_buffer (pkt)->port;
- hicn_packet_get_src_port (pkbuf, port);
- if (PREDICT_FALSE (ret))
- {
- return HICN_ERROR_PARSER_PKT_INVAL;
- }
-
/* get lifetime*/
lifetime = &hicn_get_buffer (pkt)->lifetime;
hicn_packet_get_lifetime (pkbuf, lifetime);