Skip to content

Commit

Permalink
Merge into master from pull request floodlight#40:
Browse files Browse the repository at this point in the history
pipeline_bvs: send invalid TTL packets to controller (https://github.com/bigswitch/ivs/pull/40)
  • Loading branch information
abat committed Feb 7, 2014
2 parents a4b195f + 372f545 commit 0d4b9e4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/pipeline_bvs/module/src/pipeline_bvs.c
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,8 @@ process_l3(struct ind_ovs_cfr *cfr,
uint32_t lag_id;
bool trap;

check_nw_ttl(result);

if (lookup_l3_route(hash, cfr->vrf, cfr->nw_dst, cfr->global_vrf_allowed,
&new_eth_src, &new_eth_dst, &new_vlan_vid, &lag_id, &trap) < 0) {
AIM_LOG_VERBOSE("no route to host");
Expand Down
7 changes: 7 additions & 0 deletions modules/pipeline_bvs/module/src/pipeline_bvs_support.h
Original file line number Diff line number Diff line change
Expand Up @@ -94,4 +94,11 @@ dec_nw_ttl(struct pipeline_result *result)
NULL, 0);
}

static void
check_nw_ttl(struct pipeline_result *result)
{
xbuf_append_attr(&result->actions, IND_OVS_ACTION_CHECK_NW_TTL,
NULL, 0);
}

#endif

0 comments on commit 0d4b9e4

Please sign in to comment.