Home
last modified time | relevance | path

Searched refs:saddr (Results 1 – 25 of 61) sorted by relevance

123

/include/net/
Dsecure_seq.h7 u32 secure_ipv4_port_ephemeral(__be32 saddr, __be32 daddr, __be16 dport);
8 u32 secure_ipv6_port_ephemeral(const __be32 *saddr, const __be32 *daddr,
10 u32 secure_tcp_seq(__be32 saddr, __be32 daddr,
12 u32 secure_tcp_ts_off(const struct net *net, __be32 saddr, __be32 daddr);
13 u32 secure_tcpv6_seq(const __be32 *saddr, const __be32 *daddr,
16 const __be32 *saddr, const __be32 *daddr);
17 u64 secure_dccp_sequence_number(__be32 saddr, __be32 daddr,
19 u64 secure_dccpv6_sequence_number(__be32 *saddr, __be32 *daddr,
Dip6_checksum.h34 __sum16 csum_ipv6_magic(const struct in6_addr *saddr,
41 return ~csum_unfold(csum_ipv6_magic(&ipv6_hdr(skb)->saddr, in ip6_compute_pseudo()
50 return ~csum_unfold(csum_ipv6_magic(&iph->saddr, &iph->daddr, in ip6_gro_compute_pseudo()
55 const struct in6_addr *saddr, in tcp_v6_check() argument
59 return csum_ipv6_magic(saddr, daddr, len, IPPROTO_TCP, base); in tcp_v6_check()
63 const struct in6_addr *saddr, in __tcp_v6_send_check() argument
69 th->check = ~tcp_v6_check(skb->len, saddr, daddr, 0); in __tcp_v6_send_check()
73 th->check = tcp_v6_check(skb->len, saddr, daddr, in __tcp_v6_send_check()
84 __tcp_v6_send_check(skb, &np->saddr, &sk->sk_v6_daddr); in tcp_v6_send_check()
89 const struct in6_addr *saddr, in udp_v6_check() argument
[all …]
Ddst_cache.h33 struct rtable *dst_cache_get_ip4(struct dst_cache *dst_cache, __be32 *saddr);
44 __be32 saddr);
57 const struct in6_addr *saddr);
67 struct in6_addr *saddr);
Dinet6_hashtables.h45 const struct in6_addr *saddr,
54 const struct in6_addr *saddr,
63 const struct in6_addr *saddr, in __inet6_lookup() argument
70 struct sock *sk = __inet6_lookup_established(net, hashinfo, saddr, in __inet6_lookup()
77 return inet6_lookup_listener(net, hashinfo, skb, doff, saddr, sport, in __inet6_lookup()
95 doff, &ipv6_hdr(skb)->saddr, sport, in __inet6_lookup_skb()
102 const struct in6_addr *saddr, const __be16 sport,
Dflow.h85 __be32 saddr; member
101 __be32 daddr, __be32 saddr, in flowi4_init_output() argument
116 fl4->saddr = saddr; in flowi4_init_output()
123 __be32 daddr, __be32 saddr) in flowi4_update_output() argument
128 fl4->saddr = saddr; in flowi4_update_output()
144 struct in6_addr saddr; member
167 __le16 saddr; member
Dinet_hashtables.h253 const __be32 saddr, const __be16 sport,
261 __be32 saddr, __be16 sport, in inet_lookup_listener() argument
264 return __inet_lookup_listener(net, hashinfo, skb, doff, saddr, sport, in inet_lookup_listener()
321 const __be32 saddr, const __be16 sport,
327 const __be32 saddr, const __be16 sport, in inet_lookup_established() argument
331 return __inet_lookup_established(net, hashinfo, saddr, sport, daddr, in inet_lookup_established()
338 const __be32 saddr, const __be16 sport, in __inet_lookup() argument
346 sk = __inet_lookup_established(net, hashinfo, saddr, sport, in __inet_lookup()
352 return __inet_lookup_listener(net, hashinfo, skb, doff, saddr, in __inet_lookup()
359 const __be32 saddr, const __be16 sport, in inet_lookup() argument
[all …]
Droute.h140 __be32 saddr, u8 tos, int oif) in ip_route_output() argument
146 .saddr = saddr, in ip_route_output()
153 __be32 daddr, __be32 saddr, in ip_route_output_ports() argument
160 daddr, saddr, dport, sport, sock_net_uid(net, sk)); in ip_route_output_ports()
167 __be32 daddr, __be32 saddr, in ip_route_output_gre() argument
173 fl4->saddr = saddr; in ip_route_output_gre()
179 int ip_mc_validate_source(struct sk_buff *skb, __be32 daddr, __be32 saddr,
313 flowi4_update_output(fl4, oif, tos, fl4->daddr, fl4->saddr); in ip_route_connect()
330 fl4->saddr); in ip_route_newports()
Dseg6_hmac.h43 struct ipv6_sr_hdr *hdr, struct in6_addr *saddr,
49 extern int seg6_push_hmac(struct net *net, struct in6_addr *saddr,
Ddst_metadata.h141 static inline struct metadata_dst *__ip_tun_set_dst(__be32 saddr, in __ip_tun_set_dst() argument
156 saddr, daddr, tos, ttl, in __ip_tun_set_dst()
168 return __ip_tun_set_dst(iph->saddr, iph->daddr, iph->tos, iph->ttl, in ip_tun_rx_dst()
172 static inline struct metadata_dst *__ipv6_tun_set_dst(const struct in6_addr *saddr, in __ipv6_tun_set_dst() argument
195 info->key.u.ipv6.src = *saddr; in __ipv6_tun_set_dst()
212 return __ipv6_tun_set_dst(&ip6h->saddr, &ip6h->daddr, in ipv6_tun_rx_dst()
Dxfrm.h178 xfrm_address_t saddr; member
323 const xfrm_address_t *saddr,
327 xfrm_address_t *saddr,
455 xfrm_address_t saddr; member
1062 return (tmpl->saddr.a4 && in __xfrm4_state_addr_cmp()
1063 tmpl->saddr.a4 != x->props.saddr.a4); in __xfrm4_state_addr_cmp()
1069 return (!ipv6_addr_any((struct in6_addr*)&tmpl->saddr) && in __xfrm6_state_addr_cmp()
1070 !ipv6_addr_equal((struct in6_addr *)&tmpl->saddr, (struct in6_addr*)&x->props.saddr)); in __xfrm6_state_addr_cmp()
1250 return (xfrm_address_t *)&fl->u.ip4.saddr; in xfrm_flowi_saddr()
1252 return (xfrm_address_t *)&fl->u.ip6.saddr; in xfrm_flowi_saddr()
[all …]
Dip6_route.h135 struct in6_addr *saddr) in ip6_route_get_saddr() argument
140 *saddr = f6i->fib6_prefsrc.addr; in ip6_route_get_saddr()
144 err = ipv6_dev_get_saddr(net, dev, daddr, prefs, saddr); in ip6_route_get_saddr()
151 const struct in6_addr *saddr, int oif,
228 const struct in6_addr *saddr) in ip6_dst_store() argument
236 np->saddr_cache = saddr; in ip6_dst_store()
332 const struct in6_addr *saddr);
Dipv6_stubs.h44 const struct in6_addr *saddr);
68 const struct in6_addr *saddr, __be16 sport,
/include/trace/events/
Dtcp.h15 #define TP_STORE_V4MAPPED(__entry, saddr, daddr) \ argument
20 ipv6_addr_set_v4mapped(saddr, pin6); \
26 #define TP_STORE_ADDRS(__entry, saddr, daddr, saddr6, daddr6) \ argument
36 TP_STORE_V4MAPPED(__entry, saddr, daddr); \
40 #define TP_STORE_ADDRS(__entry, saddr, daddr, saddr6, daddr6) \ argument
41 TP_STORE_V4MAPPED(__entry, saddr, daddr)
62 __array(__u8, saddr, 4)
79 p32 = (__be32 *) __entry->saddr;
90 __entry->sport, __entry->dport, __entry->saddr, __entry->daddr,
128 __array(__u8, saddr, 4)
[all …]
Dnet_probe_common.h8 struct sockaddr_in *v4 = (void *)__entry->saddr; \
24 struct sockaddr_in6 *v6 = (void *)__entry->saddr; \
28 v6->sin6_addr = inet6_sk(sk)->saddr; \
/include/net/netfilter/
Dnf_queue.h49 if ((__force u32)iph->saddr < (__force u32)iph->daddr) in hash_v4()
50 return jhash_3words((__force u32)iph->saddr, in hash_v4()
54 (__force u32)iph->saddr, iph->protocol, initval); in hash_v4()
61 if ((__force u32)ip6h->saddr.s6_addr32[3] < in hash_v6()
63 a = (__force u32) ip6h->saddr.s6_addr32[3]; in hash_v6()
66 b = (__force u32) ip6h->saddr.s6_addr32[3]; in hash_v6()
70 if ((__force u32)ip6h->saddr.s6_addr32[1] < in hash_v6()
72 c = (__force u32) ip6h->saddr.s6_addr32[1]; in hash_v6()
Dnf_tproxy.h77 const __be32 saddr, const __be32 daddr,
116 const struct in6_addr *saddr, const struct in6_addr *daddr,
/include/uapi/linux/netfilter/
Dxt_policy.h25 __u8 saddr:1, member
44 union nf_inet_addr saddr; member
51 union xt_policy_addr saddr;
/include/asm-generic/
Dchecksum.h69 csum_tcpudp_nofold(__be32 saddr, __be32 daddr, __u32 len,
75 csum_tcpudp_magic(__be32 saddr, __be32 daddr, __u32 len, in csum_tcpudp_magic() argument
78 return csum_fold(csum_tcpudp_nofold(saddr, daddr, len, proto, sum)); in csum_tcpudp_magic()
/include/linux/
Dlsm_audit.h36 __be32 saddr; member
40 struct in6_addr saddr; member
Dnetfilter_ipv4.h14 __be32 saddr; member
/include/uapi/linux/
Dif_fc.h40 __u8 saddr[FC_ALEN]; /* source address */ member
Dxfrm.h51 xfrm_address_t saddr; member
239 xfrm_address_t saddr; member
369 xfrm_address_t saddr; member
400 xfrm_address_t saddr; member
436 xfrm_address_t saddr; member
496 xfrm_address_t saddr; member
/include/uapi/linux/netfilter_bridge/
Debt_ip6.h34 struct in6_addr saddr; member
Debt_ip.h35 __be32 saddr; member
Debt_arp.h26 __be32 saddr; member

123