mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-07 09:20:11 +00:00
Use _map_v4v6_address().
MFC after: 1 week
This commit is contained in:
parent
91ee346313
commit
bf23199477
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=292554
@ -794,10 +794,9 @@ match_addrselectpolicy(struct sockaddr *addr, struct policyhead *head)
|
||||
memset(&key, 0, sizeof(key));
|
||||
key.sin6_family = AF_INET6;
|
||||
key.sin6_len = sizeof(key);
|
||||
key.sin6_addr.s6_addr[10] = 0xff;
|
||||
key.sin6_addr.s6_addr[11] = 0xff;
|
||||
memcpy(&key.sin6_addr.s6_addr[12],
|
||||
&((struct sockaddr_in *)addr)->sin_addr, 4);
|
||||
_map_v4v6_address(
|
||||
(char *)&((struct sockaddr_in *)addr)->sin_addr,
|
||||
(char *)&key.sin6_addr);
|
||||
break;
|
||||
default:
|
||||
return(NULL);
|
||||
|
Loading…
Reference in New Issue
Block a user