| /linux/include/net/ |
| H A D | route.h | 152 flowi4_init_output(fl4, sk->sk_bound_dev_if, READ_ONCE(sk->sk_mark), in inet_sk_init_flowi4() 207 flowi4_init_output(fl4, oif, sk ? READ_ONCE(sk->sk_mark) : 0, tos, in ip_route_output_ports() 334 flowi4_init_output(fl4, oif, READ_ONCE(sk->sk_mark), ip_sock_rt_tos(sk), in ip_route_connect_init()
|
| H A D | sock.h | 510 u32 sk_mark; member 1937 .mark = READ_ONCE(sk->sk_mark), in sockcm_init()
|
| /linux/net/netfilter/ |
| H A D | xt_socket.c | 80 pskb->mark = READ_ONCE(sk->sk_mark); in socket_match() 141 pskb->mark = READ_ONCE(sk->sk_mark); in socket_mt6_v1_v2_v3()
|
| /linux/net/mptcp/ |
| H A D | sockopt.c | 112 if (READ_ONCE(ssk->sk_mark) != sk->sk_mark) { in mptcp_sol_socket_sync_intval() 113 WRITE_ONCE(ssk->sk_mark, sk->sk_mark); in mptcp_sol_socket_sync_intval() 1584 if (sk->sk_mark != ssk->sk_mark) { in sync_socket_options() 1585 ssk->sk_mark = sk->sk_mark; in sync_socket_options()
|
| /linux/net/ipv4/ |
| H A D | ip_output.c | 193 skb->mark = READ_ONCE(sk->sk_mark); in ip_build_and_send_pkt() 531 skb->mark = READ_ONCE(sk->sk_mark); in __ip_queue_xmit() 1641 IP4_REPLY_MARK(net, skb->mark) ?: sk->sk_mark, in ip_send_unicast_reply()
|
| H A D | tcp_ipv4.c | 874 ctl_sk->sk_mark = (sk->sk_state == TCP_TIME_WAIT) ? in tcp_v4_send_reset() 875 inet_twsk(sk)->tw_mark : READ_ONCE(sk->sk_mark); in tcp_v4_send_reset() 883 ctl_sk->sk_mark = 0; in tcp_v4_send_reset() 998 ctl_sk->sk_mark = (sk->sk_state == TCP_TIME_WAIT) ? in tcp_v4_send_ack() 999 inet_twsk(sk)->tw_mark : READ_ONCE(sk->sk_mark); in tcp_v4_send_ack()
|
| H A D | tcp_minisocks.c | 339 tw->tw_mark = sk->sk_mark; in tcp_time_wait()
|
| H A D | inet_connection_sock.c | 1243 newsk->sk_mark = inet_rsk(req)->ir_mark; in inet_csk_clone_lock()
|
| H A D | route.c | 519 mark = READ_ONCE(sk->sk_mark); in __build_flow_key() 554 flowi4_init_output(fl4, sk->sk_bound_dev_if, READ_ONCE(sk->sk_mark), in build_sk_flow_key()
|
| /linux/drivers/net/ppp/ |
| H A D | pptp.c | 139 flowi4_init_output(fl4, sk->sk_bound_dev_if, sk->sk_mark, 0, in pptp_route_output()
|
| /linux/net/ipv6/ |
| H A D | tcp_ipv6.c | 268 fl6->flowi6_mark = sk->sk_mark; in tcp_v6_connect() 594 err = ip6_xmit(sk, skb, fl6, skb->mark ? : READ_ONCE(sk->sk_mark), in tcp_v6_send_synack() 964 mark = READ_ONCE(sk->sk_mark); in tcp_v6_send_response()
|
| H A D | datagram.c | 52 fl6->flowi6_mark = sk->sk_mark; in ip6_datagram_flow_key_init()
|
| H A D | udp.c | 756 READ_ONCE(sk->sk_mark), in udpv6_err()
|
| H A D | route.c | 3038 ip6_update_pmtu(skb, sock_net(sk), mtu, oif, READ_ONCE(sk->sk_mark), in ip6_sk_update_pmtu() 3259 READ_ONCE(sk->sk_mark), sk_uid(sk)); in ip6_sk_redirect()
|
| /linux/net/core/ |
| H A D | sock.c | 1007 if (val != sk->sk_mark) { in __sock_set_mark() 1008 WRITE_ONCE(sk->sk_mark, val); in __sock_set_mark() 2016 v.val = READ_ONCE(sk->sk_mark); in sk_getsockopt() 4615 CACHELINE_ASSERT_GROUP_MEMBER(struct sock, sock_read_tx, sk_mark); in sock_struct_check()
|
| H A D | filter.c | 10425 BUILD_BUG_ON(sizeof_field(struct sock, sk_mark) != 4); in bpf_sock_convert_ctx_access() 10429 offsetof(struct sock, sk_mark)); in bpf_sock_convert_ctx_access() 10432 offsetof(struct sock, sk_mark)); in bpf_sock_convert_ctx_access()
|
| /linux/net/dccp/ |
| H A D | ipv6.c | |
| /linux/net/sctp/ |
| H A D | ipv6.c | 248 res = ip6_xmit(sk, skb, fl6, sk->sk_mark, in sctp_v6_xmit()
|
| /linux/net/smc/ |
| H A D | af_smc.c | 518 nsk->sk_mark = READ_ONCE(osk->sk_mark); in smc_copy_sock_settings()
|
| /linux/net/xdp/ |
| H A D | xsk.c | 956 skb->mark = READ_ONCE(xs->sk.sk_mark); in xsk_skb_init_misc()
|
| /linux/net/xfrm/ |
| H A D | xfrm_policy.c | 2254 if ((READ_ONCE(sk->sk_mark) & pol->mark.m) != pol->mark.v || in xfrm_sk_policy_lookup()
|