diff options
author | Mikael Magnusson <mikma@users.sourceforge.net> | 2020-10-16 23:37:11 +0200 |
---|---|---|
committer | Mikael Magnusson <mikma@users.sourceforge.net> | 2020-10-16 23:37:11 +0200 |
commit | 3962be0c8af4287b57b7f1370751acb07f5458bd (patch) | |
tree | 63f3db8f2186cab415beccfa1c4c75795abf8d59 | |
parent | 4a65ada7ca45415dce30aa11afa8f550975a34ec (diff) |
add mgre print
-rw-r--r-- | gre.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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); } |