[ovs-dev] [PATCHv6 3/3] ofproto-dpif-mirror: Add mirror snaplen support.

Ben Pfaff blp at ovn.org
Fri Jun 10 00:16:04 UTC 2016


On Tue, Jun 07, 2016 at 10:53:54PM -0700, William Tu wrote:
> This patch adds a 'snaplen' config for mirroring table.  A mirrored packet
> with size larger than snaplen bytes will be truncated in datapath before
> sending to the mirror output port.  A snaplen of 0 equals 65535, which means
> no truncation applied.
> 
> Signed-off-by: William Tu <u9012063 at gmail.com>

> @@ -405,6 +405,11 @@
>                            "minInteger": 1,
>                            "maxInteger": 4095},
>                    "min": 0, "max": 1}},
> +       "snaplen": {
> +         "type": {"key": {"type": "integer",
> +                          "minInteger": 0,
> +                          "maxInteger": 65535},
> +                  "min": 0, "max": 65535}},

"min" and "max" above are the minimum and maximum number of values in
the column, so for an optional value they should be 0 and 1,
respectively.

In previous patches I believe that we had a minimum truncation length of
14 bytes, but this patch appears to support a minimum truncation length
of 1.



More information about the dev mailing list