Add the next_hop script.

This script determines the next hop for a packet leaving this machine destined for the given address.
This commit is contained in:
Tom Alexander
2026-03-03 09:33:11 -05:00
parent 04ede4bfee
commit ea133ded21
2 changed files with 16 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
#!/usr/bin/env bash
#
set -euo pipefail
IFS=$'\n\t'
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
exec ip route get "${@}"