Home
last modified time | relevance | path

Searched refs:sk_mark (Results 1 – 21 of 21) sorted by relevance

/linux/include/net/
H A Droute.h152 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 Dsock.h510 u32 sk_mark; member
1937 .mark = READ_ONCE(sk->sk_mark), in sockcm_init()
/linux/net/netfilter/
H A Dxt_socket.c80 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 Dsockopt.c112 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 Dip_output.c193 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 Dtcp_ipv4.c874 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 Dtcp_minisocks.c339 tw->tw_mark = sk->sk_mark; in tcp_time_wait()
H A Dinet_connection_sock.c1243 newsk->sk_mark = inet_rsk(req)->ir_mark; in inet_csk_clone_lock()
H A Droute.c519 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 Dpptp.c139 flowi4_init_output(fl4, sk->sk_bound_dev_if, sk->sk_mark, 0, in pptp_route_output()
/linux/net/ipv6/
H A Dtcp_ipv6.c268 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 Ddatagram.c52 fl6->flowi6_mark = sk->sk_mark; in ip6_datagram_flow_key_init()
H A Dudp.c756 READ_ONCE(sk->sk_mark), in udpv6_err()
H A Droute.c3038 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 Dsock.c1007 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 Dfilter.c10425 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 Dipv6.c
/linux/net/sctp/
H A Dipv6.c248 res = ip6_xmit(sk, skb, fl6, sk->sk_mark, in sctp_v6_xmit()
/linux/net/smc/
H A Daf_smc.c518 nsk->sk_mark = READ_ONCE(osk->sk_mark); in smc_copy_sock_settings()
/linux/net/xdp/
H A Dxsk.c956 skb->mark = READ_ONCE(xs->sk.sk_mark); in xsk_skb_init_misc()
/linux/net/xfrm/
H A Dxfrm_policy.c2254 if ((READ_ONCE(sk->sk_mark) & pol->mark.m) != pol->mark.v || in xfrm_sk_policy_lookup()