From 8c34f9429e2eb358980b46377eab13ad961d14be Mon Sep 17 00:00:00 2001 From: Daniel Barlow Date: Tue, 5 Apr 2022 21:16:31 +0000 Subject: [PATCH] note need to support >1 default route --- blinkenlicht/uplink.fnl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/blinkenlicht/uplink.fnl b/blinkenlicht/uplink.fnl index eda593c..b0f6ffa 100644 --- a/blinkenlicht/uplink.fnl +++ b/blinkenlicht/uplink.fnl @@ -71,6 +71,10 @@ "no" event)) {:event :newroute} + ;; XXX there may be >1 route to any given destination, + ;; (e.g wwan and wlan both have default route) + ;; we probably need to store all of them and + ;; distinguish by metric (tset routes (or event.dst "default") event) {} (print :unhandled event.event)