summaryrefslogtreecommitdiff
path: root/trafgen_proto.h
diff options
context:
space:
mode:
authorVadim Kochan <vadim4j@gmail.com>2016-08-13 02:11:17 +0300
committerTobias Klauser <tklauser@distanz.ch>2016-09-21 09:56:41 +0200
commit88169061a70a2363f503f14e686e2b070e6e63ef (patch)
tree5d9e1af94bc05e97582662e3f15dc861ef2f2899 /trafgen_proto.h
parent81ca1cd1c362ae536a6bee260827c395a78dc637 (diff)
trafgen: proto: Introduce proto_upper_header() function
Added proto_upper_header() function to fetch upper proto header. It will be used by IPv4/IPv6 proto header to notify UDP/TCP proto headers to invalidate L4 csum when L3 pseudo header field was changed. Signed-off-by: Vadim Kochan <vadim4j@gmail.com> Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'trafgen_proto.h')
-rw-r--r--trafgen_proto.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/trafgen_proto.h b/trafgen_proto.h
index 35a55d5..2e50402 100644
--- a/trafgen_proto.h
+++ b/trafgen_proto.h
@@ -95,6 +95,7 @@ extern struct proto_hdr *proto_lower_default_add(struct proto_hdr *hdr,
enum proto_id pid);
extern struct proto_hdr *proto_lower_header(struct proto_hdr *hdr);
+extern struct proto_hdr *proto_upper_header(struct proto_hdr *hdr);
extern uint8_t *proto_header_ptr(struct proto_hdr *hdr);
extern void proto_header_fields_add(struct proto_hdr *hdr,