summaryrefslogtreecommitdiff
path: root/trafgen_proto.c
diff options
context:
space:
mode:
authorVadim Kochan <vadim4j@gmail.com>2017-02-06 18:23:11 +0200
committerTobias Klauser <tklauser@distanz.ch>2017-02-06 17:43:36 +0100
commit506e22f6feb39d793434b473b60c8a20ccd12995 (patch)
treeed0576c16270aad71a506b9ae5a6b469430a7807 /trafgen_proto.c
parent8fd19eefa46b313673d6ba2a0194a68674ef5ea9 (diff)
trafgen: l3: Make possible to send frames via tun device
tun interface does not have Ethernet header so lets push Ethernet header only if device supports this. Signed-off-by: Vadim Kochan <vadim4j@gmail.com> Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'trafgen_proto.c')
-rw-r--r--trafgen_proto.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/trafgen_proto.c b/trafgen_proto.c
index 88e0846..5fd9e1c 100644
--- a/trafgen_proto.c
+++ b/trafgen_proto.c
@@ -609,3 +609,8 @@ void proto_field_dyn_apply(struct proto_field *field)
if (field->hdr->ops->field_changed)
field->hdr->ops->field_changed(field);
}
+
+const char *proto_dev_get(void)
+{
+ return ctx.dev;
+}