diff options
| author | Don Slice <dslice@cumulusnetworks.com> | 2018-03-26 19:16:09 +0000 | 
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-04-06 13:22:43 -0400 | 
| commit | 49027ce8568ca773b0fc441e4abbf71d0d605c2c (patch) | |
| tree | ff042cafbaa7c32454c178dfb410855f01419ff7 /pbrd/pbr_map.h | |
| parent | a1b7005bf472981df256f57f72bf16176727d021 (diff) | |
pbrd: adjust/remove the rule correctly when dst and/or src removed
When the last match criteria was removed (dst-ip or src-ip), we were
not deleting the rule correctly for ipv6. This fix retains the
needed src-ip/dst-ip during the pbr_send_pbr_map process so the
appropriate information is available for the rule delete.
Signed-off-by: Don Slice <dslice@cumulusnetworks.com>
Diffstat (limited to 'pbrd/pbr_map.h')
| -rw-r--r-- | pbrd/pbr_map.h | 5 | 
1 files changed, 5 insertions, 0 deletions
diff --git a/pbrd/pbr_map.h b/pbrd/pbr_map.h index 12d49d98c0..5cb22d7429 100644 --- a/pbrd/pbr_map.h +++ b/pbrd/pbr_map.h @@ -86,6 +86,11 @@ struct pbr_map_sequence {  	struct prefix *dst;  	/* +	 * Family of the src/dst.  Needed when deleting since we clear them +	 */ +	unsigned char family; + +	/*  	 * The nexthop group we auto create  	 * for when the user specifies a individual  	 * nexthop  | 
