Home
last modified time | relevance | path

Searched refs:serr (Results 1 – 7 of 7) sorted by relevance

/net/rxrpc/
Dpeer_event.c32 struct sock_exterr_skb *serr = SKB_EXT_ERR(skb); in rxrpc_lookup_peer_icmp_rcu() local
48 srx->transport.sin.sin_port = serr->port; in rxrpc_lookup_peer_icmp_rcu()
49 switch (serr->ee.ee_origin) { in rxrpc_lookup_peer_icmp_rcu()
53 skb_network_header(skb) + serr->addr_offset, in rxrpc_lookup_peer_icmp_rcu()
59 skb_network_header(skb) + serr->addr_offset + 12, in rxrpc_lookup_peer_icmp_rcu()
71 switch (serr->ee.ee_origin) { in rxrpc_lookup_peer_icmp_rcu()
74 srx->transport.sin6.sin6_port = serr->port; in rxrpc_lookup_peer_icmp_rcu()
76 skb_network_header(skb) + serr->addr_offset, in rxrpc_lookup_peer_icmp_rcu()
83 srx->transport.sin.sin_port = serr->port; in rxrpc_lookup_peer_icmp_rcu()
85 skb_network_header(skb) + serr->addr_offset, in rxrpc_lookup_peer_icmp_rcu()
[all …]
/net/ipv6/
Ddatagram.c304 struct sock_exterr_skb *serr; in ipv6_icmp_error() local
315 serr = SKB_EXT_ERR(skb); in ipv6_icmp_error()
316 serr->ee.ee_errno = err; in ipv6_icmp_error()
317 serr->ee.ee_origin = SO_EE_ORIGIN_ICMP6; in ipv6_icmp_error()
318 serr->ee.ee_type = icmph->icmp6_type; in ipv6_icmp_error()
319 serr->ee.ee_code = icmph->icmp6_code; in ipv6_icmp_error()
320 serr->ee.ee_pad = 0; in ipv6_icmp_error()
321 serr->ee.ee_info = info; in ipv6_icmp_error()
322 serr->ee.ee_data = 0; in ipv6_icmp_error()
323 serr->addr_offset = (u8 *)&(((struct ipv6hdr *)(icmph + 1))->daddr) - in ipv6_icmp_error()
[all …]
/net/ipv4/
Dip_sockglue.c415 struct sock_exterr_skb *serr; in ip_icmp_error() local
421 serr = SKB_EXT_ERR(skb); in ip_icmp_error()
422 serr->ee.ee_errno = err; in ip_icmp_error()
423 serr->ee.ee_origin = SO_EE_ORIGIN_ICMP; in ip_icmp_error()
424 serr->ee.ee_type = icmp_hdr(skb)->type; in ip_icmp_error()
425 serr->ee.ee_code = icmp_hdr(skb)->code; in ip_icmp_error()
426 serr->ee.ee_pad = 0; in ip_icmp_error()
427 serr->ee.ee_info = info; in ip_icmp_error()
428 serr->ee.ee_data = 0; in ip_icmp_error()
429 serr->addr_offset = (u8 *)&(((struct iphdr *)(icmp_hdr(skb) + 1))->daddr) - in ip_icmp_error()
[all …]
/net/sched/
Dsch_etf.c137 struct sock_exterr_skb *serr; in report_sock_error() local
149 serr = SKB_EXT_ERR(clone); in report_sock_error()
150 serr->ee.ee_errno = err; in report_sock_error()
151 serr->ee.ee_origin = SO_EE_ORIGIN_TXTIME; in report_sock_error()
152 serr->ee.ee_type = 0; in report_sock_error()
153 serr->ee.ee_code = code; in report_sock_error()
154 serr->ee.ee_pad = 0; in report_sock_error()
155 serr->ee.ee_data = (txtime >> 32); /* high part of tstamp */ in report_sock_error()
156 serr->ee.ee_info = txtime; /* low part of tstamp */ in report_sock_error()
/net/can/j1939/
Dsocket.c959 struct sock_exterr_skb *serr; in j1939_sk_errqueue() local
981 serr = SKB_EXT_ERR(skb); in j1939_sk_errqueue()
982 memset(serr, 0, sizeof(*serr)); in j1939_sk_errqueue()
990 serr->ee.ee_errno = ENOMSG; in j1939_sk_errqueue()
991 serr->ee.ee_origin = SO_EE_ORIGIN_TIMESTAMPING; in j1939_sk_errqueue()
992 serr->ee.ee_info = SCM_TSTAMP_ACK; in j1939_sk_errqueue()
1001 serr->ee.ee_errno = ENOMSG; in j1939_sk_errqueue()
1002 serr->ee.ee_origin = SO_EE_ORIGIN_TIMESTAMPING; in j1939_sk_errqueue()
1003 serr->ee.ee_info = SCM_TSTAMP_SCHED; in j1939_sk_errqueue()
1007 serr->ee.ee_errno = session->err; in j1939_sk_errqueue()
[all …]
/net/core/
Dskbuff.c1188 struct sock_exterr_skb *serr = SKB_EXT_ERR(skb); in skb_zerocopy_notify_extend() local
1192 old_lo = serr->ee.ee_info; in skb_zerocopy_notify_extend()
1193 old_hi = serr->ee.ee_data; in skb_zerocopy_notify_extend()
1202 serr->ee.ee_data += len; in skb_zerocopy_notify_extend()
1209 struct sock_exterr_skb *serr; in sock_zerocopy_callback() local
1228 serr = SKB_EXT_ERR(skb); in sock_zerocopy_callback()
1229 memset(serr, 0, sizeof(*serr)); in sock_zerocopy_callback()
1230 serr->ee.ee_errno = 0; in sock_zerocopy_callback()
1231 serr->ee.ee_origin = SO_EE_ORIGIN_ZEROCOPY; in sock_zerocopy_callback()
1232 serr->ee.ee_data = hi; in sock_zerocopy_callback()
[all …]
Dsock.c3239 struct sock_exterr_skb *serr; in sock_recv_errqueue() local
3259 serr = SKB_EXT_ERR(skb); in sock_recv_errqueue()
3260 put_cmsg(msg, level, type, sizeof(serr->ee), &serr->ee); in sock_recv_errqueue()