Lines Matching refs:sip
2480 static struct smack_known *smack_ipv4host_label(struct sockaddr_in *sip) in smack_ipv4host_label() argument
2483 struct in_addr *siap = &sip->sin_addr; in smack_ipv4host_label()
2507 static bool smk_ipv6_localhost(struct sockaddr_in6 *sip) in smk_ipv6_localhost() argument
2509 __be16 *be16p = (__be16 *)&sip->sin6_addr; in smk_ipv6_localhost()
2510 __be32 *be32p = (__be32 *)&sip->sin6_addr; in smk_ipv6_localhost()
2530 static struct smack_known *smack_ipv6host_label(struct sockaddr_in6 *sip) in smack_ipv6host_label() argument
2533 struct in6_addr *sap = &sip->sin6_addr; in smack_ipv6host_label()
2540 if (smk_ipv6_localhost(sip)) in smack_ipv6host_label()
3037 struct sockaddr_in6 *sip = (struct sockaddr_in6 *)sap; in smack_socket_connect() local
3043 rsp = smack_ipv6host_label(sip); in smack_socket_connect()
3047 rc = smk_ipv6_check(ssp->smk_out, rsp, sip, in smack_socket_connect()
3051 rc = smk_ipv6_port_check(sock->sk, sip, SMK_CONNECTING); in smack_socket_connect()
3927 struct sockaddr_in *sip = (struct sockaddr_in *) msg->msg_name; in smack_socket_sendmsg() local
3940 if (sip == NULL) in smack_socket_sendmsg()
3946 sip->sin_family != AF_INET) in smack_socket_sendmsg()
3948 rc = smk_ipv4_check(sock->sk, sip); in smack_socket_sendmsg()
4053 static int smk_skb_to_addr_ipv6(struct sk_buff *skb, struct sockaddr_in6 *sip) in smk_skb_to_addr_ipv6() argument
4065 sip->sin6_port = 0; in smk_skb_to_addr_ipv6()
4071 sip->sin6_addr = ip6->saddr; in smk_skb_to_addr_ipv6()
4084 sip->sin6_port = th->source; in smk_skb_to_addr_ipv6()
4090 sip->sin6_port = uh->source; in smk_skb_to_addr_ipv6()
4095 sip->sin6_port = dh->dccph_sport; in smk_skb_to_addr_ipv6()