Skip to content

Commit 9af2851

Browse files
shlusiakdavem330
authored andcommitted
addrconf: refuse isatap eui64 for INADDR_ANY
A tunnel with no local ipv4 endpoint would otherwise use the ISATAP linklocal address fe80::5efe:0:0, which is invalid. Rather not add a linklocal address at all. Signed-off-by: Sascha Hlusiak <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 4b27960 commit 9af2851

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

net/ipv6/addrconf.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1520,6 +1520,8 @@ static int addrconf_ifid_infiniband(u8 *eui, struct net_device *dev)
15201520

15211521
int __ipv6_isatap_ifid(u8 *eui, __be32 addr)
15221522
{
1523+
if (addr == 0)
1524+
return -1;
15231525
eui[0] = (ipv4_is_zeronet(addr) || ipv4_is_private_10(addr) ||
15241526
ipv4_is_loopback(addr) || ipv4_is_linklocal_169(addr) ||
15251527
ipv4_is_private_172(addr) || ipv4_is_test_192(addr) ||

0 commit comments

Comments
 (0)