Disable tun panic on IPv4 packets and add a link to a Vyatta router config

This commit is contained in:
Arceliar 2018-01-03 15:27:13 -06:00
parent 82fd435211
commit e5d526881d
2 changed files with 3 additions and 1 deletions

View file

@ -42,7 +42,7 @@ func (tun *tunDevice) read() error {
if buf[0] & 0xf0 != 0x60 ||
n != 256*int(buf[4]) + int(buf[5]) + IPv6_HEADER_LENGTH {
// Either not an IPv6 packet or not the complete packet for some reason
panic("Should not happen in testing")
//panic("Should not happen in testing")
continue
}
packet := append(util_getBytes(), buf[:n]...)