Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
struct sctp_sockaddr_entry {
struct list_head list;
union sctp_addr a;
- union sctp_addr a_h;
__u8 use_as_src;
};
if (!addr->a.v4.sin_port)
addr->a.v4.sin_port = htons(bp->port);
- flip_to_h(&addr->a_h, &addr->a);
-
addr->use_as_src = use_as_src;
INIT_LIST_HEAD(&addr->list);
addr->a.v6.sin6_port = 0;
addr->a.v6.sin6_addr = ifp->addr;
addr->a.v6.sin6_scope_id = dev->ifindex;
- addr->a_h = addr->a;
INIT_LIST_HEAD(&addr->list);
list_add_tail(&addr->list, addrlist);
}
addr->a.v4.sin_family = AF_INET;
addr->a.v4.sin_port = 0;
addr->a.v4.sin_addr.s_addr = ifa->ifa_local;
- addr->a_h = addr->a;
list_add_tail(&addr->list, addrlist);
}
}