summaryrefslogtreecommitdiffstats
path: root/hicn-plugin/src/pg.h
diff options
context:
space:
mode:
authorLuca Muscariello <muscariello@ieee.org>2020-03-23 06:44:40 +0000
committerGerrit Code Review <gerrit@fd.io>2020-03-23 06:44:40 +0000
commit41d8204a49ed4bdec0e81aea9924780f2f5ffab8 (patch)
tree4995f9addae474092f5c897f970303325d178ec6 /hicn-plugin/src/pg.h
parentac2f69f34a616c0af6384a617c6f42ad0e658c72 (diff)
parentb0d6cebaa0f45735a0c75a6c309aa84b550f12ad (diff)
Merge "[HICN-549] Refactored pg to use punting through fib"
Diffstat (limited to 'hicn-plugin/src/pg.h')
-rw-r--r--hicn-plugin/src/pg.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/hicn-plugin/src/pg.h b/hicn-plugin/src/pg.h
index 083afb6b3..35f570880 100644
--- a/hicn-plugin/src/pg.h
+++ b/hicn-plugin/src/pg.h
@@ -16,21 +16,18 @@
#ifndef __HICN_PG_H__
#define __HICN_PG_H__
-/* Subnet-mask for punting data in the client node */
-#define SUBNET_MASK4 32
-#define SUBNET_MASK6 128
-
typedef struct hicnpg_main_s
{
u32 index;
+ fib_prefix_t *pgen_clt_hicn_name;
u32 index_ifaces;
+ u32 n_ifaces;
u32 max_seq_number;
u32 n_flows;
- u32 n_ifaces;
- u32 hicn_underneath;
ip46_address_t pgen_clt_src_addr;
- ip46_address_t pgen_clt_hicn_name;
+
u16 interest_lifetime;
+ u32 sw_if;
} hicnpg_main_t;
extern hicnpg_main_t hicnpg_main;
@@ -38,13 +35,16 @@ extern hicnpg_main_t hicnpg_main;
typedef struct hicnpg_server_main_s
{
u32 node_index;
- u32 hicn_underneath;
/* Arbitrary content */
u32 pgen_svr_buffer_idx;
+ fib_prefix_t *pgen_srv_hicn_name;
} hicnpg_server_main_t;
extern hicnpg_server_main_t hicnpg_server_main;
+extern vlib_node_registration_t hicn_pg_interest_node;
+extern vlib_node_registration_t hicn_pg_data_node;
+
#endif // __HICN_PG_H__
/*