diff options
| author | Jafar Al-Gharaibeh <Jafaral@users.noreply.github.com> | 2021-10-23 00:06:16 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-23 00:06:16 -0500 |
| commit | 63da89db77a9a485c8336dbcc5520fbd47404a1a (patch) | |
| tree | c0c1f5b063aa510ce083a93011497d2adbe073fb /lib/pbr.h | |
| parent | ffab914521927b6225eab6b02f96d5499c8ea85b (diff) | |
| parent | d70a31a3ef2b60d978b336d5cc9ee5e1ec079dfc (diff) | |
Merge pull request #9742 from elimbaum/add-vlan-actions
pbrd: add vlan actions to vty
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; }; |
