From d053535a66ff864d309dec2303927e410b27e5b6 Mon Sep 17 00:00:00 2001 From: Vadim Kochan Date: Tue, 26 Jan 2016 22:25:05 +0200 Subject: trafgen: proto: Add functon to fill field with device ipv4 address Add helper which fills a device's ipv4 addr to the specified protocol field. It will be used by protocols like ARP, IPv4, etc. Signed-off-by: Vadim Kochan Signed-off-by: Tobias Klauser --- trafgen_proto.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'trafgen_proto.h') diff --git a/trafgen_proto.h b/trafgen_proto.h index 517b278..0267cf6 100644 --- a/trafgen_proto.h +++ b/trafgen_proto.h @@ -97,4 +97,7 @@ extern void proto_field_set_default_be32(struct proto_hdr *hdr, uint32_t fid, extern void proto_field_set_dev_mac(struct proto_hdr *hdr, uint32_t fid); extern void proto_field_set_default_dev_mac(struct proto_hdr *hdr, uint32_t fid); +extern void proto_field_set_dev_ipv4(struct proto_hdr *hdr, uint32_t fid); +extern void proto_field_set_default_dev_ipv4(struct proto_hdr *hdr, uint32_t fid); + #endif /* TRAFGEN_PROTO_I_H */ -- cgit v1.2.3-54-g00ecf