summaryrefslogtreecommitdiffhomepage
path: root/gre.c
diff options
context:
space:
mode:
authorMikael Magnusson <mikma@users.sourceforge.net>2020-10-16 23:37:11 +0200
committerMikael Magnusson <mikma@users.sourceforge.net>2020-10-16 23:37:11 +0200
commit3962be0c8af4287b57b7f1370751acb07f5458bd (patch)
tree63f3db8f2186cab415beccfa1c4c75795abf8d59 /gre.c
parent4a65ada7ca45415dce30aa11afa8f550975a34ec (diff)
add mgre print
Diffstat (limited to 'gre.c')
-rw-r--r--gre.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/gre.c b/gre.c
index 40ea9f9..68f4a14 100644
--- a/gre.c
+++ b/gre.c
@@ -165,6 +165,8 @@ int main(int argc, char **argv)
remote_any = is_any(&remote);
if (remote_any)
{
+ fprintf(stderr, "remote any\n");
+
if (type == IFF_TUN)
{
fprintf(stderr, "tun required specifying remote\n");
@@ -345,6 +347,12 @@ static int gre_any(const uint8_t *buf, int n)
return -1;
}
}
+
+ if (remote_any)
+ {
+ // TODO Add header
+ }
+
return write(tun, buf, n);
}