This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mac_to_ipv6() { | |
local HWADDR="$1" IFACE="$2" | |
local -a OCTETS | |
local IPV6ADDR | |
if [[ -z "$IFACE" ]]; then | |
IFACE=$(ip route | grep ^default | sed 's/^.* dev //') | |
fi | |
OCTETS=( ${HWADDR//:/\ } ) | |
OCTETS[0]=$(printf %02x $((16#${OCTETS[0]}+0x02))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
protocol=$5 | |
inner_ip=$6 | |
inner_port=$4 | |
outter_ip=$1 | |
outter_port=$2 | |
ip4p=$3 | |
qbv4="10.0.0.123" |