diff options
author | Philippe Guibert <philippe.guibert@6wind.com> | 2018-03-30 13:01:39 +0200 |
---|---|---|
committer | Philippe Guibert <philippe.guibert@6wind.com> | 2018-05-25 15:49:38 +0200 |
commit | f730e5667dcbe6b2e937b35084c5825be44895bf (patch) | |
tree | a9d7fe14f21eb47a0b3c31ab5d0cddce604eddd7 /bgpd/bgp_pbr.h | |
parent | bgpd: do not account twice references to rule context (diff) | |
download | frr-f730e5667dcbe6b2e937b35084c5825be44895bf.tar.xz frr-f730e5667dcbe6b2e937b35084c5825be44895bf.zip |
bgpd: add 3 fields to ipset_entry : src,dst port, and proto
Those 3 fields are read and written between zebra and bgpd.
This permits extending the ipset_entry structure.
Combinatories will be possible:
- filtering with one of the src/dst port.
- filtering with one of the range src/ range dst port
usage of src or dst is exclusive in a FS entry.
- filtering a port or a port range based on either src or dst port.
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Diffstat (limited to 'bgpd/bgp_pbr.h')
-rw-r--r-- | bgpd/bgp_pbr.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bgpd/bgp_pbr.h b/bgpd/bgp_pbr.h index 5129ada37..fd47ad6fb 100644 --- a/bgpd/bgp_pbr.h +++ b/bgpd/bgp_pbr.h @@ -189,6 +189,12 @@ struct bgp_pbr_match_entry { struct prefix src; struct prefix dst; + uint16_t src_port_min; + uint16_t src_port_max; + uint16_t dst_port_min; + uint16_t dst_port_max; + uint8_t proto; + bool installed; bool install_in_progress; }; |