diff options
Diffstat (limited to 'tools/tunbridge.py')
| -rw-r--r-- | tools/tunbridge.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/tunbridge.py b/tools/tunbridge.py index b462c1b..f5e391c 100644 --- a/tools/tunbridge.py +++ b/tools/tunbridge.py @@ -68,6 +68,8 @@ def main(): while True: pkt = os.read(tun, 2048) if not pkt: return + if len(pkt) < 20 or pkt[16:20] != b"\x0a\x00\x00\x02": + continue # only unicast to 10.0.0.2 (drop mcast noise) try: p.stdin.write(slip_encode(pkt)); p.stdin.flush() except Exception: return |
