From 3962be0c8af4287b57b7f1370751acb07f5458bd Mon Sep 17 00:00:00 2001 From: Mikael Magnusson Date: Fri, 16 Oct 2020 23:37:11 +0200 Subject: add mgre print --- gre.c | 8 ++++++++ 1 file changed, 8 insertions(+) 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); } -- cgit v1.2.3