summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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);
}