summaryrefslogtreecommitdiff
path: root/trafgen_proto.h
diff options
context:
space:
mode:
authorVadim Kochan <vadim4j@gmail.com>2016-01-26 22:25:05 +0200
committerTobias Klauser <tklauser@distanz.ch>2016-01-28 16:15:23 +0100
commitd053535a66ff864d309dec2303927e410b27e5b6 (patch)
tree548dd875b5ad9a14ac61d18ffb005186af8249c6 /trafgen_proto.h
parentf3c3677c5dd67d7edda5bee5b316e014be231337 (diff)
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 <vadim4j@gmail.com> Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'trafgen_proto.h')
-rw-r--r--trafgen_proto.h3
1 files changed, 3 insertions, 0 deletions
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 */