/net/core/ |
H A D | dst.c | 2 * net/core/dst.c Protocol independent destination cache. 24 #include <net/dst.h> 53 static void ___dst_free(struct dst_entry *dst); 68 struct dst_entry *dst, *next, head; local 75 while ((dst = next) != NULL) { 76 next = dst->next; 79 if (likely(atomic_read(&dst->__refcnt))) { 80 last->next = dst; 81 last = dst; 87 dst 165 struct dst_entry *dst; local 207 ___dst_free(struct dst_entry *dst) argument 219 __dst_free(struct dst_entry *dst) argument 235 dst_destroy(struct dst_entry * dst) argument 274 struct dst_entry *dst = container_of(head, struct dst_entry, rcu_head); local 281 dst_release(struct dst_entry *dst) argument 294 dst_cow_metrics_generic(struct dst_entry *dst, unsigned long old) argument 319 __dst_destroy_metrics_generic(struct dst_entry *dst, unsigned long old) argument 339 __skb_dst_set_noref(struct sk_buff *skb, struct dst_entry *dst, bool force) argument 362 dst_ifdown(struct dst_entry *dst, struct net_device *dev, int unregister) argument 385 struct dst_entry *dst, *last = NULL; local [all...] |
/net/ceph/ |
H A D | armor.c | 4 int ceph_armor(char *dst, const char *src, const char *end); 5 int ceph_unarmor(char *dst, const char *src, const char *end); 36 int ceph_armor(char *dst, const char *src, const char *end) argument 45 *dst++ = encode_bits(a >> 2); 48 *dst++ = encode_bits(((a & 3) << 4) | (b >> 4)); 51 *dst++ = encode_bits(((b & 15) << 2) | 53 *dst++ = encode_bits(c & 63); 55 *dst++ = encode_bits((b & 15) << 2); 56 *dst++ = '='; 59 *dst 74 ceph_unarmor(char *dst, const char *src, const char *end) argument [all...] |
H A D | crypto.h | 23 int ceph_crypto_key_clone(struct ceph_crypto_key *dst, 31 void *dst, size_t *dst_len, 34 void *dst, size_t *dst_len, 41 void *dst, size_t *dst_len, 48 int ceph_armor(char *dst, const char *src, const char *end); 49 int ceph_unarmor(char *dst, const char *src, const char *end);
|
/net/bridge/ |
H A D | br_nf_core.c | 28 static void fake_update_pmtu(struct dst_entry *dst, struct sock *sk, argument 33 static void fake_redirect(struct dst_entry *dst, struct sock *sk, argument 38 static u32 *fake_cow_metrics(struct dst_entry *dst, unsigned long old) argument 43 static struct neighbour *fake_neigh_lookup(const struct dst_entry *dst, argument 50 static unsigned int fake_mtu(const struct dst_entry *dst) argument 52 return dst->dev->mtu; 80 atomic_set(&rt->dst.__refcnt, 1); 81 rt->dst.dev = br->dev; 82 rt->dst.path = &rt->dst; [all...] |
/net/sunrpc/ |
H A D | sunrpc.h | 48 struct dst_entry *dst; local 51 dst = rcu_dereference(sk->sk_dst_cache); 52 if (dst && dst->dev && 53 (dst->dev->features & NETIF_F_LOOPBACK))
|
/net/dsa/ |
H A D | dsa.c | 77 dsa_switch_setup(struct dsa_switch_tree *dst, int index, argument 80 struct dsa_chip_data *pd = dst->pd->chip + index; 94 dst->master_netdev->name, index); 98 dst->master_netdev->name, index, name); 108 ds->dst = dst; 110 ds->pd = dst->pd->chip + index; 125 if (dst->cpu_switch != -1) { 130 dst->cpu_switch = index; 131 dst 293 struct dsa_switch_tree *dst; local 310 struct dsa_switch_tree *dst = (void *)_dst; local 572 struct dsa_switch_tree *dst; local 659 struct dsa_switch_tree *dst = platform_get_drvdata(pdev); local 686 struct dsa_switch_tree *dst = dev->dsa_ptr; local 705 struct dsa_switch_tree *dst = platform_get_drvdata(pdev); local 721 struct dsa_switch_tree *dst = platform_get_drvdata(pdev); local [all...] |
/net/sched/ |
H A D | em_meta.c | 71 #include <net/dst.h> 104 struct meta_obj *dst, int *err) 112 get_random_bytes(&dst->value, sizeof(dst->value)); 125 dst->value = fixed_loadavg(avenrun[0]); 130 dst->value = fixed_loadavg(avenrun[1]); 135 dst->value = fixed_loadavg(avenrun[2]); 142 static inline int int_dev(struct net_device *dev, struct meta_obj *dst) argument 147 dst->value = dev->ifindex; 151 static inline int var_dev(struct net_device *dev, struct meta_obj *dst) argument 648 meta_var_change(struct meta_value *dst, struct nlattr *nla) argument 664 meta_var_apply_extras(struct meta_value *v, struct meta_obj *dst) argument 701 meta_int_change(struct meta_value *dst, struct nlattr *nla) argument 715 meta_int_apply_extras(struct meta_value *v, struct meta_obj *dst) argument 778 meta_get(struct sk_buff *skb, struct tcf_pkt_info *info, struct meta_value *v, struct meta_obj *dst) argument 838 meta_change_data(struct meta_value *dst, struct nlattr *nla) argument [all...] |
/net/ipv6/ |
H A D | inet6_connection_sock.c | 75 struct dst_entry *dst; local 89 dst = ip6_dst_lookup_flow(sk, fl6, final_p); 90 if (IS_ERR(dst)) 93 return dst; 179 void __inet6_csk_dst_store(struct sock *sk, struct dst_entry *dst, argument 183 __ip6_dst_store(sk, dst, daddr, saddr); 198 struct dst_entry *dst; local 215 dst = __inet6_csk_dst_check(sk, np->dst_cookie); 216 if (!dst) { 217 dst 229 struct dst_entry *dst; local 255 struct dst_entry *dst = inet6_csk_route_socket(sk, &fl6); local [all...] |
H A D | xfrm6_policy.c | 18 #include <net/dst.h> 34 struct dst_entry *dst; local 42 dst = ip6_route_output(net, NULL, &fl6); 44 err = dst->error; 45 if (dst->error) { 46 dst_release(dst); 47 dst = ERR_PTR(err); 50 return dst; 56 struct dst_entry *dst; local 59 dst 83 xfrm6_init_path(struct xfrm_dst *path, struct dst_entry *dst, int nfheader_len) argument 228 xfrm6_update_pmtu(struct dst_entry *dst, struct sock *sk, struct sk_buff *skb, u32 mtu) argument 237 xfrm6_redirect(struct dst_entry *dst, struct sock *sk, struct sk_buff *skb) argument 246 xfrm6_dst_destroy(struct dst_entry *dst) argument 260 xfrm6_dst_ifdown(struct dst_entry *dst, struct net_device *dev, int unregister) argument [all...] |
H A D | ip6_output.c | 61 struct dst_entry *dst = skb_dst(skb); local 62 struct net_device *dev = dst->dev; 108 nexthop = rt6_nexthop((struct rt6_info *)dst); 109 neigh = __ipv6_neigh_lookup_noref(dst->dev, nexthop); 111 neigh = __neigh_create(&nd_tbl, nexthop, dst->dev, false); 113 ret = dst_neigh_output(dst, neigh, skb); 119 IP6_INC_STATS(dev_net(dst->dev), 120 ip6_dst_idev(dst), IPSTATS_MIB_OUTNOROUTES); 161 struct dst_entry *dst = skb_dst(skb); local 176 head_room += sizeof(struct ipv6hdr) + LL_RESERVED_SPACE(dst 324 ip6_dst_mtu_forward(const struct dst_entry *dst) argument 365 struct dst_entry *dst = skb_dst(skb); local 844 ip6_sk_dst_check(struct sock *sk, struct dst_entry *dst, const struct flowi6 *fl6) argument 890 ip6_dst_lookup_tail(struct sock *sk, struct dst_entry **dst, struct flowi6 *fl6) argument 977 ip6_dst_lookup(struct sock *sk, struct dst_entry **dst, struct flowi6 *fl6) argument 998 struct dst_entry *dst = NULL; local 1028 struct dst_entry *dst = sk_dst_check(sk, inet6_sk(sk)->dst_cookie); local [all...] |
H A D | route.c | 56 #include <net/dst.h> 77 static struct dst_entry *ip6_dst_check(struct dst_entry *dst, u32 cookie); 78 static unsigned int ip6_default_advmss(const struct dst_entry *dst); 79 static unsigned int ip6_mtu(const struct dst_entry *dst); 91 static void ip6_rt_update_pmtu(struct dst_entry *dst, struct sock *sk, 93 static void rt6_do_redirect(struct dst_entry *dst, struct sock *sk, 136 static u32 *ipv6_cow_metrics(struct dst_entry *dst, unsigned long old) argument 138 struct rt6_info *rt = (struct rt6_info *) dst; 142 if (!(rt->dst.flags & DST_HOST)) 156 prev = cmpxchg(&dst 180 ip6_neigh_lookup(const struct dst_entry *dst, struct sk_buff *skb, const void *daddr) argument 213 ip6_blackhole_mtu(const struct dst_entry *dst) argument 220 ip6_rt_blackhole_update_pmtu(struct dst_entry *dst, struct sock *sk, struct sk_buff *skb, u32 mtu) argument 225 ip6_rt_blackhole_redirect(struct dst_entry *dst, struct sock *sk, struct sk_buff *skb) argument 230 ip6_rt_blackhole_cow_metrics(struct dst_entry *dst, unsigned long old) argument 312 struct dst_entry *dst = &rt->dst; local 321 ip6_dst_destroy(struct dst_entry *dst) argument 344 ip6_dst_ifdown(struct dst_entry *dst, struct net_device *dev, int how) argument 825 struct dst_entry *dst; local 1084 ip6_dst_check(struct dst_entry *dst, u32 cookie) argument 1103 ip6_negative_advice(struct dst_entry *dst) argument 1139 ip6_rt_update_pmtu(struct dst_entry *dst, struct sock *sk, struct sk_buff *skb, u32 mtu) argument 1164 struct dst_entry *dst; local 1263 struct dst_entry *dst; local 1285 struct dst_entry *dst; local 1306 ip6_default_advmss(const struct dst_entry *dst) argument 1328 ip6_mtu(const struct dst_entry *dst) argument 1354 struct dst_entry *dst; local 1393 struct dst_entry *dst, **pprev; local 1417 struct dst_entry *dst, **pprev; local 1745 rt6_do_redirect(struct dst_entry *dst, struct sock *sk, struct sk_buff *skb) argument 2090 struct dst_entry *dst = skb_dst(skb); local 2516 rt6_fill_node(struct net *net, struct sk_buff *skb, struct rt6_info *rt, struct in6_addr *dst, struct in6_addr *src, int iif, int type, u32 portid, u32 seq, int prefix, int nowait, unsigned int flags) argument [all...] |
H A D | netfilter.c | 14 #include <net/dst.h> 26 struct dst_entry *dst; local 35 dst = ip6_route_output(net, skb->sk, &fl6); 36 err = dst->error; 38 IP6_INC_STATS(net, ip6_dst_idev(dst), IPSTATS_MIB_OUTNOROUTES); 40 dst_release(dst); 47 skb_dst_set(skb, dst); 53 dst = xfrm_lookup(net, dst, flowi6_to_flowi(&fl6), skb->sk, 0); 54 if (IS_ERR(dst)) 111 nf_ip6_route(struct net *net, struct dst_entry **dst, struct flowi *fl, bool strict) argument [all...] |
/net/decnet/ |
H A D | dn_route.c | 16 * Steve Whitehouse : Use dst cache for input routes too. 85 #include <net/dst.h> 114 static unsigned int dn_dst_default_advmss(const struct dst_entry *dst); 115 static unsigned int dn_dst_mtu(const struct dst_entry *dst); 120 static void dn_dst_update_pmtu(struct dst_entry *dst, struct sock *sk, 122 static void dn_dst_redirect(struct dst_entry *dst, struct sock *sk, 124 static struct neighbour *dn_dst_neigh_lookup(const struct dst_entry *dst, 155 static void dn_dst_destroy(struct dst_entry *dst) argument 157 struct dn_route *rt = (struct dn_route *) dst; 161 dst_destroy_metrics_generic(dst); 164 dn_dst_ifdown(struct dst_entry *dst, struct net_device *dev, int how) argument 178 dn_hash(__le16 src, __le16 dst) argument 271 dn_dst_update_pmtu(struct dst_entry *dst, struct sock *sk, struct sk_buff *skb, u32 mtu) argument 300 dn_dst_redirect(struct dst_entry *dst, struct sock *sk, struct sk_buff *skb) argument 308 dn_dst_check(struct dst_entry *dst, __u32 cookie) argument 313 dn_dst_negative_advice(struct dst_entry *dst) argument 438 __le16 *dst; local 748 struct dst_entry *dst = skb_dst(skb); local 757 struct dst_entry *dst = skb_dst(skb); local 795 struct dst_entry *dst = skb_dst(skb); local 865 dn_dst_default_advmss(const struct dst_entry *dst) argument 870 dn_dst_mtu(const struct dst_entry *dst) argument 877 dn_dst_neigh_lookup(const struct dst_entry *dst, struct sk_buff *skb, const void *daddr) argument [all...] |
/net/netfilter/ |
H A D | nf_conntrack_l3proto_generic.c | 38 memset(&tuple->dst.u3, 0, sizeof(tuple->dst.u3)); 47 memset(&tuple->dst.u3, 0, sizeof(tuple->dst.u3));
|
H A D | xt_nat.c | 29 static void xt_nat_convert_range(struct nf_nat_range *dst, argument 32 memset(&dst->min_addr, 0, sizeof(dst->min_addr)); 33 memset(&dst->max_addr, 0, sizeof(dst->max_addr)); 35 dst->flags = src->flags; 36 dst->min_addr.ip = src->min_ip; 37 dst->max_addr.ip = src->max_ip; 38 dst->min_proto = src->min; 39 dst [all...] |
H A D | xt_realm.c | 28 const struct dst_entry *dst = skb_dst(skb); local 30 return (info->id == (dst->tclassid & info->mask)) ^ info->invert;
|
H A D | nf_conntrack_labels.c | 68 u32 *dst; local 78 dst = (u32 *) labels->bits; 81 replace_u32(&dst[i], mask ? ~mask[i] : 0, data[i]); 86 replace_u32(&dst[i], 0, 0);
|
H A D | xt_HMARK.c | 36 __be32 dst; member in struct:hmark_tuple 65 u16 src, dst; local 69 dst = ntohs(hp.b16.dst); 71 if (dst > src) 72 uports->v32 = (dst << 16) | src; 74 uports->v32 = (src << 16) | dst; 95 t->dst = hmark_addr_mask(otuple->src.l3num, rtuple->src.u3.ip6, 104 t->uports.b16.dst = rtuple->src.u.all; 121 u32 dst local [all...] |
/net/ipv4/ |
H A D | datagram.c | 82 sk_dst_set(sk, &rt->dst); 99 struct dst_entry *dst; local 105 dst = __sk_dst_get(sk); 106 if (!dst || !dst->obsolete || dst->ops->check(dst, 0)) { 118 dst = !IS_ERR(rt) ? &rt->dst : NULL; 119 sk_dst_set(sk, dst); [all...] |
H A D | route.c | 93 #include <net/dst.h> 132 static struct dst_entry *ipv4_dst_check(struct dst_entry *dst, u32 cookie); 133 static unsigned int ipv4_default_advmss(const struct dst_entry *dst); 134 static unsigned int ipv4_mtu(const struct dst_entry *dst); 135 static struct dst_entry *ipv4_negative_advice(struct dst_entry *dst); 137 static void ip_rt_update_pmtu(struct dst_entry *dst, struct sock *sk, 139 static void ip_do_redirect(struct dst_entry *dst, struct sock *sk, 141 static void ipv4_dst_destroy(struct dst_entry *dst); 143 static u32 *ipv4_cow_metrics(struct dst_entry *dst, unsigned long old) argument 149 static struct neighbour *ipv4_neigh_lookup(const struct dst_entry *dst, 336 struct ip_rt_acct *dst, *src; local 439 ipv4_neigh_lookup(const struct dst_entry *dst, struct sk_buff *skb, const void *daddr) argument 785 ip_do_redirect(struct dst_entry *dst, struct sock *sk, struct sk_buff *skb) argument 801 ipv4_negative_advice(struct dst_entry *dst) argument 962 struct dst_entry *dst = &rt->dst; local 988 ip_rt_update_pmtu(struct dst_entry *dst, struct sock *sk, struct sk_buff *skb, u32 mtu) argument 1121 ipv4_dst_check(struct dst_entry *dst, u32 cookie) argument 1211 ipv4_default_advmss(const struct dst_entry *dst) argument 1224 ipv4_mtu(const struct dst_entry *dst) argument 1340 ipv4_dst_destroy(struct dst_entry *dst) argument 2185 ipv4_blackhole_dst_check(struct dst_entry *dst, u32 cookie) argument 2190 ipv4_blackhole_mtu(const struct dst_entry *dst) argument 2197 ipv4_rt_blackhole_update_pmtu(struct dst_entry *dst, struct sock *sk, struct sk_buff *skb, u32 mtu) argument 2202 ipv4_rt_blackhole_redirect(struct dst_entry *dst, struct sock *sk, struct sk_buff *skb) argument 2207 ipv4_rt_blackhole_cow_metrics(struct dst_entry *dst, unsigned long old) argument 2279 rt_fill_info(struct net *net, __be32 dst, __be32 src, struct flowi4 *fl4, struct sk_buff *skb, u32 portid, u32 seq, int event, int nowait, unsigned int flags) argument 2401 __be32 dst = 0; local [all...] |
H A D | xfrm4_policy.c | 15 #include <net/dst.h> 36 return &rt->dst; 53 struct dst_entry *dst; local 56 dst = __xfrm4_dst_lookup(net, &fl4, 0, NULL, daddr); 57 if (IS_ERR(dst)) 61 dst_release(dst); 70 static int xfrm4_init_path(struct xfrm_dst *path, struct dst_entry *dst, argument 84 xdst->u.dst.dev = dev; 197 static void xfrm4_update_pmtu(struct dst_entry *dst, struct sock *sk, argument 200 struct xfrm_dst *xdst = (struct xfrm_dst *)dst; 206 xfrm4_redirect(struct dst_entry *dst, struct sock *sk, struct sk_buff *skb) argument 215 xfrm4_dst_destroy(struct dst_entry *dst) argument 224 xfrm4_dst_ifdown(struct dst_entry *dst, struct net_device *dev, int unregister) argument [all...] |
/net/ipv6/netfilter/ |
H A D | nf_reject_ipv6.c | 139 struct dst_entry *dst = NULL; local 159 dst = ip6_route_output(net, NULL, &fl6); 160 if (dst == NULL || dst->error) { 161 dst_release(dst); 164 dst = xfrm_lookup(net, dst, flowi6_to_flowi(&fl6), NULL, 0); 165 if (IS_ERR(dst)) 168 hh_len = (dst->dev->hard_header_len + 15)&~15; 169 nskb = alloc_skb(hh_len + 15 + dst [all...] |
/net/netfilter/ipvs/ |
H A D | ip_vs_nfct.c | 72 &(T)->dst.u3.ip, ntohs((T)->dst.u.all), \ 73 (T)->dst.protonum 117 if (new_tuple.dst.protonum != IPPROTO_ICMP && 118 new_tuple.dst.protonum != IPPROTO_ICMPV6) 121 new_tuple.dst.u3 = cp->vaddr; 122 if (new_tuple.dst.protonum != IPPROTO_ICMP && 123 new_tuple.dst.protonum != IPPROTO_ICMPV6) 124 new_tuple.dst.u.tcp.port = cp->vport; 164 ip_vs_conn_fill_param(net, exp->tuple.src.l3num, orig->dst [all...] |
/net/bridge/netfilter/ |
H A D | ebt_mark.c | 61 static void mark_tg_compat_from_user(void *dst, const void *src) argument 64 struct ebt_mark_t_info *kern = dst; 70 static int mark_tg_compat_to_user(void __user *dst, const void *src) argument 72 struct compat_ebt_mark_t_info __user *user = dst;
|
H A D | ebt_mark_m.c | 45 static void mark_mt_compat_from_user(void *dst, const void *src) argument 48 struct ebt_mark_m_info *kern = dst; 56 static int mark_mt_compat_to_user(void __user *dst, const void *src) argument 58 struct compat_ebt_mark_m_info __user *user = dst;
|