Add IPv6 prefix handling to unix tun interface
This commit is contained in:
parent
848efac15d
commit
3fb0269d7c
10 changed files with 229 additions and 41 deletions
|
|
@ -46,7 +46,7 @@ fn test_set_get_ipv6() {
|
|||
let tun = TunInterface::new()?;
|
||||
|
||||
let addr = Ipv6Addr::new(1, 1, 1, 1, 1, 1, 1, 1);
|
||||
tun.set_ipv6_addr(addr)?;
|
||||
tun.add_ipv6_addr(addr, 128)?;
|
||||
|
||||
// let result = tun.ipv6_addr()?;
|
||||
// assert_eq!(addr, result);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue