diff options
| author | Eli Baum <ebaum@mitre.org> | 2021-10-05 09:06:49 -0400 |
|---|---|---|
| committer | Eli Baum <ebaum@mitre.org> | 2021-10-07 09:14:59 -0400 |
| commit | d70a31a3ef2b60d978b336d5cc9ee5e1ec079dfc (patch) | |
| tree | 2fdf320ce338a2078a2d9bac1453e59fcd04ef91 /lib/pbr.h | |
| parent | ac32b03f9805df2639d6a62ffd1bef76da15e6f0 (diff) | |
pbrd: add vlan actions to vty
Signed-off-by: Eli Baum <ebaum@mitre.org>
Diffstat (limited to 'lib/pbr.h')
| -rw-r--r-- | lib/pbr.h | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -50,7 +50,7 @@ struct pbr_filter { #define PBR_FILTER_SRC_PORT_RANGE (1 << 6) #define PBR_FILTER_DST_PORT_RANGE (1 << 7) #define PBR_FILTER_DSFIELD (1 << 8) -#define PBR_FILTER_IP_PROTOCOL (1 << 9) +#define PBR_FILTER_IP_PROTOCOL (1 << 9) #define PBR_DSFIELD_DSCP (0xfc) /* Upper 6 bits of DS field: DSCP */ #define PBR_DSFIELD_ECN (0x03) /* Lower 2 bits of DS field: BCN */ @@ -83,6 +83,13 @@ struct pbr_filter { * the user criteria may directly point to a table too. */ struct pbr_action { + /* VLAN */ + uint8_t pcp; + uint16_t vlan_id; + uint16_t vlan_flags; + + uint32_t queue_id; + uint32_t table; }; |
