Skip to content

Commit

Permalink
handle both v4 and v6 traffic in firewall node
Browse files Browse the repository at this point in the history
  • Loading branch information
byteocean authored and guvenc committed Jan 12, 2024
1 parent c1a2018 commit 69efae9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/nodes/firewall_node.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ static __rte_always_inline rte_edge_t get_next_index(__rte_unused struct rte_nod
const struct dp_port *out_port = dp_get_out_port(df);
enum dp_fwall_action action;

// currently only IPv4 firewall is implemented
if (df->l3_type == RTE_ETHER_TYPE_IPV4 && cntrack) {
if (cntrack) {
if (DP_FLOW_HAS_FLAG_FIREWALL(cntrack->flow_flags)) {
action = (enum dp_fwall_action)cntrack->fwall_action[df->flow_dir];
} else if (df->flow_dir == DP_FLOW_DIR_ORG) {
Expand Down

0 comments on commit 69efae9

Please sign in to comment.