aboutsummaryrefslogtreecommitdiffstats
path: root/sys/linux/vnet.txt
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2018-01-15 20:26:04 +0100
committerDmitry Vyukov <dvyukov@google.com>2018-01-15 20:26:04 +0100
commite17f4a5dfb4e9ad6fc12d6a94a6a978e8bec42aa (patch)
tree2154c951c55194d36ef2df089badf39261c19c08 /sys/linux/vnet.txt
parent47501d0f3be031c9ef6121e48050b5d2d4d5a7f5 (diff)
sys/linux: generate GRE v0 packets even with incorrect payload
Diffstat (limited to 'sys/linux/vnet.txt')
-rw-r--r--sys/linux/vnet.txt9
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/linux/vnet.txt b/sys/linux/vnet.txt
index 2946879a7..d59532575 100644
--- a/sys/linux/vnet.txt
+++ b/sys/linux/vnet.txt
@@ -824,11 +824,12 @@ udp_packet {
include <net/gre.h>
gre_packet {
- pptp gre_packet_pptp
+ pptp gre_packet_pptp
# TODO: add more packets
-# TODO: this creates recursion ipv4 -> gre -> ipv4 -> ...
-# cisco_ipv4 gre_packet_cisco[ETH_P_IP, ipv4_packet]
-# cisco_ipv6 gre_packet_cisco[ETH_P_IPV6, ipv6_packet]
+# TODO: the payload should be ipv4_packet/ipv6_packet, but this creates recursion
+# ipv4 -> gre -> ipv4 -> ...
+ cisco_ipv4 gre_packet_cisco[ETH_P_IP, array[int8]]
+ cisco_ipv6 gre_packet_cisco[ETH_P_IPV6, array[int8]]
} [packed]
type gre_packet_cisco[PROTO, PAYLOAD] {