Hybrid ICN (hICN) plugin  v21.06-rc0-4-g18fa668
Enumerations | Functions
parser.h File Reference
#include <vlib/vlib.h>
#include "hicn.h"
#include "error.h"
Include dependency graph for parser.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  hicn_pkt_type_e { HICN_PKT_TYPE_INTEREST = 0, HICN_PKT_TYPE_CONTENT = 1 }
 

Functions

always_inline int hicn_interest_parse_pkt (vlib_buffer_t *pkt, hicn_name_t *name, u16 *namelen, hicn_header_t **pkt_hdrp, u8 *isv6)
 Parse an interest packet. More...
 
always_inline int hicn_data_parse_pkt (vlib_buffer_t *pkt, hicn_name_t *name, u16 *namelen, hicn_header_t **pkt_hdrp, u8 *isv6)
 Parse a data packet. More...
 

Function Documentation

◆ hicn_data_parse_pkt()

always_inline int hicn_data_parse_pkt ( vlib_buffer_t *  pkt,
hicn_name_t name,
u16 *  namelen,
hicn_header_t **  pkt_hdrp,
u8 *  isv6 
)

Parse a data packet.

Parameters
pktvlib buffer holding the interest
namereturn variable that will point to the hicn name
namelenreturn valiable that will hold the length of the name
pkt_hdrpreturn valiable that will point to the packet header
isv6return variable that will be equale to 1 is the header is ipv6

◆ hicn_interest_parse_pkt()

always_inline int hicn_interest_parse_pkt ( vlib_buffer_t *  pkt,
hicn_name_t name,
u16 *  namelen,
hicn_header_t **  pkt_hdrp,
u8 *  isv6 
)

Parse an interest packet.

Parameters
pktvlib buffer holding the interest
namereturn variable that will point to the hicn name
namelenreturn valiable that will hold the length of the name
pkt_hdrpreturn valiable that will point to the packet header
isv6return variable that will be equale to 1 is the header is ipv6