freebsd-ports/net/findmtu/files/findmtu.sh
Pav Lucistnik ce43bbe677 FindMTU is a tool that performs IPv6 path MTU discovery. You can use it
to debug network problems and to detect IPv6-in-IPv4 tunnels in the path
to a destination.

FindMTU only performs IPv6 path MTU discovery. It does not know about
IPv4.

PR:		ports/68985
Submitted by:	Janos Mohacsi <janos.mohacsi@bsd.hu>
2004-07-14 15:30:54 +00:00

8 lines
264 B
Bash

#!/bin/sh
if netstat -rn -f inet6 | grep -qv $1; then
# Delete host route. As it is not in the routing table,
# we are sure that it is a cloned route and can be deleted
# safely
route delete -inet6 $i > /dev/null 2> /dev/null
fi
%%PREFIX%%/bin/findmtu.real $1