#include <vlib/vlib.h>
#include "hicn.h"
#include "error.h"
Go to the source code of this file.
|
| enum | hicn_pkt_type_e { HICN_PKT_TYPE_INTEREST = 0,
HICN_PKT_TYPE_CONTENT = 1
} |
| |
◆ 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
-
| pkt | vlib buffer holding the interest |
| name | return variable that will point to the hicn name |
| namelen | return valiable that will hold the length of the name |
| pkt_hdrp | return valiable that will point to the packet header |
| isv6 | return 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
-
| pkt | vlib buffer holding the interest |
| name | return variable that will point to the hicn name |
| namelen | return valiable that will hold the length of the name |
| pkt_hdrp | return valiable that will point to the packet header |
| isv6 | return variable that will be equale to 1 is the header is ipv6 |