[IPV6]: Add v4mapped address inline
Add v4mapped address inline to avoid calls to ipv6_addr_type(). Signed-off-by: Brian Haley <brian.haley@hp.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
6f4fc423b9
commit
e773e4faa1
@@ -612,7 +612,7 @@ int udpv6_sendmsg(struct kiocb *iocb, struct sock *sk,
|
||||
daddr = NULL;
|
||||
|
||||
if (daddr) {
|
||||
if (ipv6_addr_type(daddr) == IPV6_ADDR_MAPPED) {
|
||||
if (ipv6_addr_v4mapped(daddr)) {
|
||||
struct sockaddr_in sin;
|
||||
sin.sin_family = AF_INET;
|
||||
sin.sin_port = sin6 ? sin6->sin6_port : inet->dport;
|
||||
|
Reference in New Issue
Block a user