• Home
  • Raw
  • Download

Lines Matching refs:skb

3790 static int smk_skb_to_addr_ipv6(struct sk_buff *skb, struct sockaddr_in6 *sip)  in smk_skb_to_addr_ipv6()  argument
3804 offset = skb_network_offset(skb); in smk_skb_to_addr_ipv6()
3805 ip6 = skb_header_pointer(skb, offset, sizeof(_ipv6h), &_ipv6h); in smk_skb_to_addr_ipv6()
3812 offset = ipv6_skip_exthdr(skb, offset, &nexthdr, &frag_off); in smk_skb_to_addr_ipv6()
3819 th = skb_header_pointer(skb, offset, sizeof(_tcph), &_tcph); in smk_skb_to_addr_ipv6()
3825 uh = skb_header_pointer(skb, offset, sizeof(_udph), &_udph); in smk_skb_to_addr_ipv6()
3830 dh = skb_header_pointer(skb, offset, sizeof(_dccph), &_dccph); in smk_skb_to_addr_ipv6()
3846 static int smack_socket_sock_rcv_skb(struct sock *sk, struct sk_buff *skb) in smack_socket_sock_rcv_skb() argument
3861 if (family == PF_INET6 && skb->protocol == htons(ETH_P_IP)) in smack_socket_sock_rcv_skb()
3873 if (skb && skb->secmark != 0) { in smack_socket_sock_rcv_skb()
3874 skp = smack_from_secid(skb->secmark); in smack_socket_sock_rcv_skb()
3883 rc = netlbl_skbuff_getattr(skb, family, &secattr); in smack_socket_sock_rcv_skb()
3897 ad.a.u.net->netif = skb->skb_iif; in smack_socket_sock_rcv_skb()
3898 ipv4_skb_to_auditdata(skb, &ad.a, NULL); in smack_socket_sock_rcv_skb()
3910 netlbl_skbuff_err(skb, family, rc, 0); in smack_socket_sock_rcv_skb()
3914 proto = smk_skb_to_addr_ipv6(skb, &sadd); in smack_socket_sock_rcv_skb()
3919 if (skb && skb->secmark != 0) in smack_socket_sock_rcv_skb()
3920 skp = smack_from_secid(skb->secmark); in smack_socket_sock_rcv_skb()
3927 if (skb == NULL) in smack_socket_sock_rcv_skb()
3932 ad.a.u.net->netif = skb->skb_iif; in smack_socket_sock_rcv_skb()
3933 ipv6_skb_to_auditdata(skb, &ad.a, NULL); in smack_socket_sock_rcv_skb()
3943 icmpv6_send(skb, ICMPV6_DEST_UNREACH, in smack_socket_sock_rcv_skb()
3997 struct sk_buff *skb, u32 *secid) in smack_socket_getpeersec_dgram() argument
4007 if (skb != NULL) { in smack_socket_getpeersec_dgram()
4008 if (skb->protocol == htons(ETH_P_IP)) in smack_socket_getpeersec_dgram()
4011 else if (skb->protocol == htons(ETH_P_IPV6)) in smack_socket_getpeersec_dgram()
4025 s = skb->secmark; in smack_socket_getpeersec_dgram()
4035 rc = netlbl_skbuff_getattr(skb, family, &secattr); in smack_socket_getpeersec_dgram()
4044 s = skb->secmark; in smack_socket_getpeersec_dgram()
4086 static int smack_inet_conn_request(struct sock *sk, struct sk_buff *skb, in smack_inet_conn_request() argument
4109 if (skb->protocol == htons(ETH_P_IP)) in smack_inet_conn_request()
4122 if (skb && skb->secmark != 0) { in smack_inet_conn_request()
4123 skp = smack_from_secid(skb->secmark); in smack_inet_conn_request()
4129 rc = netlbl_skbuff_getattr(skb, family, &secattr); in smack_inet_conn_request()
4143 ad.a.u.net->netif = skb->skb_iif; in smack_inet_conn_request()
4144 ipv4_skb_to_auditdata(skb, &ad.a, NULL); in smack_inet_conn_request()
4166 hdr = ip_hdr(skb); in smack_inet_conn_request()