@ -664,11 +664,11 @@ func TestPrefsFromUpArgs(t *testing.T) {
goos : "linux" ,
goos : "linux" ,
args : upArgsT {
args : upArgsT {
advertiseRoutes : "fd7a:115c:a1e0:b1a::bb:10.0.0.0/112" ,
advertiseRoutes : "fd7a:115c:a1e0:b1a::bb:10.0.0.0/112" ,
netfilterMode : "off" ,
netfilterMode : "off" ,
} ,
} ,
want : & ipn . Prefs {
want : & ipn . Prefs {
WantRunning : true ,
WantRunning : true ,
NoSNAT : true ,
NoSNAT : true ,
AdvertiseRoutes : [ ] netaddr . IPPrefix {
AdvertiseRoutes : [ ] netaddr . IPPrefix {
netaddr . MustParseIPPrefix ( "fd7a:115c:a1e0:b1a::bb:10.0.0.0/112" ) ,
netaddr . MustParseIPPrefix ( "fd7a:115c:a1e0:b1a::bb:10.0.0.0/112" ) ,
} ,
} ,
@ -679,7 +679,7 @@ func TestPrefsFromUpArgs(t *testing.T) {
goos : "linux" ,
goos : "linux" ,
args : upArgsT {
args : upArgsT {
advertiseRoutes : "fd7a:115c:a1e0:b1a::/64" ,
advertiseRoutes : "fd7a:115c:a1e0:b1a::/64" ,
netfilterMode : "off" ,
netfilterMode : "off" ,
} ,
} ,
wantErr : "fd7a:115c:a1e0:b1a::/64 4-in-6 prefix must be at least a /96" ,
wantErr : "fd7a:115c:a1e0:b1a::/64 4-in-6 prefix must be at least a /96" ,
} ,
} ,
@ -688,7 +688,7 @@ func TestPrefsFromUpArgs(t *testing.T) {
goos : "linux" ,
goos : "linux" ,
args : upArgsT {
args : upArgsT {
advertiseRoutes : "fd7a:115c:a1e0:b1a:1234:5678::/112" ,
advertiseRoutes : "fd7a:115c:a1e0:b1a:1234:5678::/112" ,
netfilterMode : "off" ,
netfilterMode : "off" ,
} ,
} ,
wantErr : "route fd7a:115c:a1e0:b1a:1234:5678::/112 contains invalid site ID 12345678; must be 0xff or less" ,
wantErr : "route fd7a:115c:a1e0:b1a:1234:5678::/112 contains invalid site ID 12345678; must be 0xff or less" ,
} ,
} ,