OSDN Git Service

erspan: Add type I version 0 support.
authorWilliam Tu <u9012063@gmail.com>
Tue, 5 May 2020 16:05:06 +0000 (09:05 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 5 May 2020 20:23:29 +0000 (13:23 -0700)
commitf989d546a2d5a9f001f6f8be49d98c10ab9b1897
tree9bffb2d41538c73853c73c9e6fd9f402fb112ded
parent730f135104f3afe320d0df4c53c28d6ad9d17d6b
erspan: Add type I version 0 support.

The Type I ERSPAN frame format is based on the barebones
IP + GRE(4-byte) encapsulation on top of the raw mirrored frame.
Both type I and II use 0x88BE as protocol type. Unlike type II
and III, no sequence number or key is required.
To creat a type I erspan tunnel device:
  $ ip link add dev erspan11 type erspan \
            local 172.16.1.100 remote 172.16.1.200 \
            erspan_ver 0

Signed-off-by: William Tu <u9012063@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/erspan.h
net/ipv4/ip_gre.c