/net/x25/ |
H A D | x25_route.c | 34 struct x25_route *rt; local 41 rt = list_entry(entry, struct x25_route, node); 43 if (!memcmp(&rt->address, address, sigdigits) && 44 rt->sigdigits == sigdigits) 48 rt = kmalloc(sizeof(*rt), GFP_ATOMIC); 50 if (!rt) 53 strcpy(rt->address.x25_addr, "000000000000000"); 54 memcpy(rt->address.x25_addr, address->x25_addr, sigdigits); 56 rt 74 __x25_remove_route(struct x25_route *rt) argument 85 struct x25_route *rt; local 111 struct x25_route *rt; local 156 struct x25_route *rt, *use = NULL; local 184 struct x25_route_struct rt; local 217 struct x25_route *rt; local [all...] |
H A D | x25_forward.c | 25 struct x25_route *rt; local 33 if ((rt = x25_get_route(dest_addr)) == NULL) 36 if ((neigh_new = x25_get_neigh(rt->dev)) == NULL) { 46 if (rt->dev == from->dev) { 71 new_frwd->dev1 = rt->dev; 90 x25_route_put(rt);
|
/net/sunrpc/ |
H A D | timer.c | 30 * @rt: context to initialize 34 void rpc_init_rtt(struct rpc_rtt *rt, unsigned long timeo) argument 39 rt->timeo = timeo; 44 rt->srtt[i] = init; 45 rt->sdrtt[i] = RPC_RTO_INIT; 46 rt->ntimeouts[i] = 0; 53 * @rt: context to update 60 void rpc_update_rtt(struct rpc_rtt *rt, unsigned int timer, long m) argument 74 srtt = (long *)&rt->srtt[timer]; 81 sdrtt = (long *)&rt 109 rpc_calc_rto(struct rpc_rtt *rt, unsigned int timer) argument [all...] |
/net/bridge/ |
H A D | br_nf_core.c | 78 struct rtable *rt = &br->fake_rtable; local 80 atomic_set(&rt->dst.__refcnt, 1); 81 rt->dst.dev = br->dev; 82 rt->dst.path = &rt->dst; 83 dst_init_metrics(&rt->dst, br_dst_default_metrics, true); 84 rt->dst.flags = DST_NOXFRM | DST_FAKE_RTABLE; 85 rt->dst.ops = &fake_dst_ops;
|
/net/decnet/ |
H A D | dn_route.c | 157 struct dn_route *rt = (struct dn_route *) dst; local 159 if (rt->n) 160 neigh_release(rt->n); 167 struct dn_route *rt = (struct dn_route *) dst; local 168 struct neighbour *n = rt->n; 187 static inline void dnrt_free(struct dn_route *rt) argument 189 call_rcu_bh(&rt->dst.rcu_head, dst_rcu_free); 192 static inline void dnrt_drop(struct dn_route *rt) argument 194 dst_release(&rt->dst); 195 call_rcu_bh(&rt 201 struct dn_route *rt; local 232 struct dn_route *rt; local 274 struct dn_route *rt = (struct dn_route *) dst; local 333 dn_insert_route(struct dn_route *rt, unsigned int hash, struct dn_route **rp) argument 373 struct dn_route *rt, *next; local 749 struct dn_route *rt = (struct dn_route *) dst; local 758 struct dn_route *rt = (struct dn_route *)dst; local 797 struct dn_route *rt; local 884 dn_rt_set_next_hop(struct dn_route *rt, struct dn_fib_res *res) argument 979 struct dn_route *rt = NULL; local 1258 struct dn_route *rt = NULL; local 1315 struct dn_route *rt = NULL; local 1530 struct dn_route *rt; local 1559 struct dn_route *rt = (struct dn_route *)skb_dst(skb); local 1647 struct dn_route *rt = NULL; local 1734 struct dn_route *rt; local 1788 struct dn_route *rt = NULL; local 1801 dn_rt_cache_get_next(struct seq_file *seq, struct dn_route *rt) argument 1818 struct dn_route *rt = dn_rt_cache_get_first(seq); local 1829 struct dn_route *rt = dn_rt_cache_get_next(seq, v); local 1842 struct dn_route *rt = v; local [all...] |
/net/ipv6/ |
H A D | route.c | 95 static int rt6_score_route(struct rt6_info *rt, int oif, int strict); 106 static void rt6_bind_peer(struct rt6_info *rt, int create) argument 111 base = inetpeer_base_ptr(rt->_rt6i_peer); 115 peer = inet_getpeer_v6(base, &rt->rt6i_dst.addr, create); 117 if (!rt6_set_peer(rt, peer)) 122 static struct inet_peer *__rt6_get_peer(struct rt6_info *rt, int create) argument 124 if (rt6_has_peer(rt)) 125 return rt6_peer_ptr(rt); 127 rt6_bind_peer(rt, create); 128 return (rt6_has_peer(rt) 131 rt6_get_peer_create(struct rt6_info *rt) argument 138 struct rt6_info *rt = (struct rt6_info *) dst; local 167 choose_neigh_daddr(struct rt6_info *rt, struct sk_buff *skb, const void *daddr) argument 184 struct rt6_info *rt = (struct rt6_info *) dst; local 308 struct rt6_info *rt = dst_alloc(&net->ipv6.ip6_dst_ops, dev, local 323 struct rt6_info *rt = (struct rt6_info *)dst; local 347 struct rt6_info *rt = (struct rt6_info *)dst; local 364 rt6_check_expired(const struct rt6_info *rt) argument 438 rt6_device_match(struct net *net, struct rt6_info *rt, const struct in6_addr *saddr, int oif, int flags) argument 504 rt6_probe(struct rt6_info *rt) argument 551 rt6_probe(struct rt6_info *rt) argument 559 rt6_check_dev(struct rt6_info *rt, int oif) argument 570 rt6_check_neigh(struct rt6_info *rt) argument 601 rt6_score_route(struct rt6_info *rt, int oif, int strict) argument 620 find_match(struct rt6_info *rt, int oif, int strict, int *mpri, struct rt6_info *match, bool *do_rr) argument 656 struct rt6_info *rt, *match; local 706 struct rt6_info *rt; local 794 struct rt6_info *rt; local 849 __ip6_ins_rt(struct rt6_info *rt, struct nl_info *info, struct nlattr *mx, int mx_len) argument 863 ip6_ins_rt(struct rt6_info *rt) argument 875 struct rt6_info *rt; local 904 struct rt6_info *rt = ip6_rt_copy(ort, daddr); local 915 struct rt6_info *rt, *nrt; local 1042 struct rt6_info *rt, *ort = (struct rt6_info *) dst_orig; local 1086 struct rt6_info *rt; local 1105 struct rt6_info *rt = (struct rt6_info *) dst; local 1123 struct rt6_info *rt; local 1201 struct rt6_info *rt; local 1355 struct rt6_info *rt; local 1414 icmp6_clean_all(int (*func)(struct rt6_info *rt, void *arg), void *arg) argument 1422 struct rt6_info *rt = (struct rt6_info *) dst; local 1466 struct rt6_info *rt = NULL; local 1677 __ip6_del_rt(struct rt6_info *rt, struct nl_info *info) argument 1698 ip6_del_rt(struct rt6_info *rt) argument 1710 struct rt6_info *rt; local 1749 struct rt6_info *rt, *nrt = NULL; local 1870 struct rt6_info *rt = ip6_dst_alloc(net, ort->dst.dev, 0, local 1910 struct rt6_info *rt = NULL; local 1969 struct rt6_info *rt; local 2013 rt6_addrconf_purge(struct rt6_info *rt, void *arg) argument 2141 struct rt6_info *rt = ip6_dst_alloc(net, net->loopback_dev, local 2169 ip6_route_get_saddr(struct net *net, struct rt6_info *rt, const struct in6_addr *daddr, unsigned int prefs, struct in6_addr *saddr) argument 2192 fib6_remove_prefsrc(struct rt6_info *rt, void *arg) argument 2222 fib6_clean_tohost(struct rt6_info *rt, void *arg) argument 2244 fib6_ifdown(struct rt6_info *rt, void *arg) argument 2272 rt6_mtu_change_route(struct rt6_info *rt, void *p_arg) argument 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 2661 rt6_dump_route(struct rt6_info *rt, void *p_arg) argument 2682 struct rt6_info *rt; local 2774 inet6_rt_notify(int event, struct rt6_info *rt, struct nl_info *info) argument [all...] |
H A D | ip6_fib.c | 157 static void rt6_release(struct rt6_info *rt) argument 159 if (atomic_dec_and_test(&rt->rt6i_ref)) 160 dst_free(&rt->dst); 271 struct rt6_info *rt; local 273 for (rt = w->leaf; rt; rt = rt->dst.rt6_next) { 274 res = rt6_dump_route(rt, w->args); 277 w->leaf = rt; 627 rt6_qualify_for_ecmp(struct rt6_info *rt) argument 666 fib6_add_rt2node(struct fib6_node *fn, struct rt6_info *rt, struct nl_info *info, struct nlattr *mx, int mx_len) argument 820 fib6_start_gc(struct net *net, struct rt6_info *rt) argument 841 fib6_add(struct fib6_node *root, struct rt6_info *rt, struct nl_info *info, struct nlattr *mx, int mx_len) argument 1278 struct rt6_info *rt = *rtp; local 1348 fib6_del(struct rt6_info *rt, struct nl_info *info) argument 1516 struct rt6_info *rt; local 1609 fib6_prune_clone(struct rt6_info *rt, void *arg) argument 1642 fib6_age(struct rt6_info *rt, void *arg) argument 1845 struct rt6_info *rt = v; local [all...] |
H A D | fib6_rules.c | 54 struct rt6_info *rt = NULL; local 65 rt = net->ipv6.ip6_null_entry; 70 rt = net->ipv6.ip6_blk_hole_entry; 74 rt = net->ipv6.ip6_prohibit_entry; 84 rt = lookup(net, table, flp6, flags); 85 if (rt != net->ipv6.ip6_null_entry) { 97 ip6_dst_idev(&rt->dst)->dev, 110 ip6_rt_put(rt); 112 rt = NULL; 116 dst_hold(&rt 124 struct rt6_info *rt = (struct rt6_info *) arg->result; local [all...] |
H A D | ip6_output.c | 447 struct rt6_info *rt; local 454 rt = (struct rt6_info *) dst; 455 if (rt->rt6i_flags & RTF_GATEWAY) 456 target = &rt->rt6i_gateway; 460 peer = inet_getpeer_v6(net->ipv6.peers, &rt->rt6i_dst.addr, 1); 540 static void ipv6_select_ident(struct frag_hdr *fhdr, struct rt6_info *rt) argument 547 hash = __ipv6_addr_jhash(&rt->rt6i_dst.addr, ip6_idents_hashrnd); 548 hash = __ipv6_addr_jhash(&rt->rt6i_src.addr, hash); 557 struct rt6_info *rt = (struct rt6_info *)skb_dst(skb); local 644 ipv6_select_ident(fh, rt); 849 struct rt6_info *rt; local 896 struct rt6_info *rt; local 907 struct rt6_info *rt = (struct rt6_info *) *dst; local 1043 ip6_ufo_append_data(struct sock *sk, int getfrag(void *from, char *to, int offset, int len, int odd, struct sk_buff *skb), void *from, int length, int hh_len, int fragheaderlen, int transhdrlen, int mtu, unsigned int flags, struct rt6_info *rt) argument 1113 ip6_append_data_mtu(unsigned int *mtu, int *maxfraglen, unsigned int fragheaderlen, struct sk_buff *skb, struct rt6_info *rt, unsigned int orig_mtu) argument 1137 ip6_append_data(struct sock *sk, int getfrag(void *from, char *to, int offset, int len, int odd, struct sk_buff *skb), void *from, int length, int transhdrlen, int hlimit, int tclass, struct ipv6_txoptions *opt, struct flowi6 *fl6, struct rt6_info *rt, unsigned int flags, int dontfrag) argument 1534 struct rt6_info *rt = (struct rt6_info *)inet->cork.base.dst; local [all...] |
H A D | xfrm6_policy.c | 78 struct rt6_info *rt = (struct rt6_info *)xdst; local 80 rt6_init_peer(rt, net->ipv6.peers); 87 struct rt6_info *rt = (struct rt6_info *)dst; local 88 if (rt->rt6i_node) 89 path->path_cookie = rt->rt6i_node->fn_sernum; 100 struct rt6_info *rt = (struct rt6_info *)xdst->route; local 111 rt6_transfer_peer(&xdst->u.rt6, rt); 115 xdst->u.rt6.rt6i_flags = rt->rt6i_flags & (RTF_ANYCAST | 117 xdst->u.rt6.rt6i_metric = rt->rt6i_metric; 118 xdst->u.rt6.rt6i_node = rt [all...] |
/net/ipx/ |
H A D | ipx_route.c | 51 struct ipx_route *rt; local 55 rt = ipxrtr_lookup(network); 56 if (!rt) { 57 rt = kmalloc(sizeof(*rt), GFP_ATOMIC); 59 if (!rt) 62 atomic_set(&rt->refcnt, 1); 63 ipxrtr_hold(rt); 65 list_add(&rt->node, &ipx_routes); 73 rt 176 struct ipx_route *rt = NULL; local 260 struct rtentry rt; /* Use these to behave like 'other' stacks */ local [all...] |
H A D | ipx_proc.c | 81 struct ipx_route *rt; local 88 rt = list_entry(v, struct ipx_route, node); 90 seq_printf(seq, "%08lX ", (unsigned long int)ntohl(rt->ir_net)); 91 if (rt->ir_routed) 93 (long unsigned int)ntohl(rt->ir_intrfc->if_netnum), 94 rt->ir_router_node[0], rt->ir_router_node[1], 95 rt->ir_router_node[2], rt->ir_router_node[3], 96 rt [all...] |
/net/ipv4/ |
H A D | route.c | 445 const struct rtable *rt; local 448 rt = (const struct rtable *) dst; 449 if (rt->rt_gateway) 450 pkey = (const __be32 *) &rt->rt_gateway; 562 static inline void rt_free(struct rtable *rt) argument 564 call_rcu(&rt->dst.rcu_head, dst_rcu_free); 571 struct rtable *rt; local 573 rt = rcu_dereference(fnhe->fnhe_rth_input); 574 if (rt) { 576 rt_free(rt); 609 fill_route_from_fnhe(struct rtable *rt, struct fib_nh_exception *fnhe) argument 626 struct rtable *rt; local 705 __ip_do_redirect(struct rtable *rt, struct sk_buff *skb, struct flowi4 *fl4, bool kill_route) argument 787 struct rtable *rt; local 803 struct rtable *rt = (struct rtable *)dst; local 837 struct rtable *rt = skb_rtable(skb); local 901 struct rtable *rt = skb_rtable(skb); local 960 __ip_rt_update_pmtu(struct rtable *rt, struct flowi4 *fl4, u32 mtu) argument 991 struct rtable *rt = (struct rtable *) dst; local 1003 struct rtable *rt; local 1022 struct rtable *rt; local 1040 struct rtable *rt; local 1094 struct rtable *rt; local 1110 struct rtable *rt; local 1123 struct rtable *rt = (struct rtable *) dst; local 1140 struct rtable *rt; local 1168 ip_rt_get_source(u8 *addr, struct sk_buff *skb, struct rtable *rt) argument 1202 set_class_tag(struct rtable *rt, u32 tag) argument 1226 const struct rtable *rt = (const struct rtable *) dst; local 1264 rt_bind_exception(struct rtable *rt, struct fib_nh_exception *fnhe, __be32 daddr) argument 1308 rt_cache_route(struct fib_nh *nh, struct rtable *rt) argument 1333 rt_add_uncached_list(struct rtable *rt) argument 1342 struct rtable *rt = (struct rtable *) dst; local 1355 struct rtable *rt; local 1369 rt_cache_valid(const struct rtable *rt) argument 1376 rt_set_nexthop(struct rtable *rt, __be32 daddr, const struct fib_result *res, struct fib_nh_exception *fnhe, struct fib_info *fi, u16 type, u32 itag) argument 2228 struct rtable *rt; local 2265 struct rtable *rt = __ip_route_output_key(net, flp4); local 2283 struct rtable *rt = skb_rtable(skb); local 2399 struct rtable *rt = NULL; local [all...] |
H A D | datagram.c | 28 struct rtable *rt; local 53 rt = ip_route_connect(fl4, usin->sin_addr.s_addr, saddr, 57 if (IS_ERR(rt)) { 58 err = PTR_ERR(rt); 64 if ((rt->rt_flags & RTCF_BROADCAST) && !sock_flag(sk, SOCK_BROADCAST)) { 65 ip_rt_put(rt); 82 sk_dst_set(sk, &rt->dst); 101 struct rtable *rt; local 113 rt = ip_route_output_ports(sock_net(sk), &fl4, sk, daddr, 118 dst = !IS_ERR(rt) [all...] |
H A D | xfrm4_policy.c | 26 struct rtable *rt; local 34 rt = __ip_route_output_key(net, fl4); 35 if (!IS_ERR(rt)) 36 return &rt->dst; 38 return ERR_CAST(rt); 79 struct rtable *rt = (struct rtable *)xdst->route; local 82 xdst->u.rt.rt_iif = fl4->flowi4_iif; 89 xdst->u.rt.rt_is_input = rt->rt_is_input; 90 xdst->u.rt [all...] |
H A D | ip_forward.c | 77 struct rtable *rt; /* Route we use */ local 106 rt = skb_rtable(skb); 108 if (opt->is_strictroute && rt->rt_uses_gateway) 112 mtu = ip_dst_mtu_maybe_forward(&rt->dst, true); 114 IP_INC_STATS(dev_net(rt->dst.dev), IPSTATS_MIB_FRAGFAILS); 121 if (skb_cow(skb, LL_RESERVED_SPACE(rt->dst.dev)+rt->dst.header_len)) 132 if (rt->rt_flags&RTCF_DOREDIRECT && !opt->srr && !skb_sec_path(skb)) 138 rt->dst.dev, ip_forward_finish);
|
H A D | icmp.c | 288 static bool icmpv4_xrlim_allow(struct net *net, struct rtable *rt, argument 291 struct dst_entry *dst = &rt->dst; 354 struct ipcm_cookie *ipc, struct rtable **rt) 359 sk = icmp_sk(dev_net((*rt)->dst.dev)); 363 ipc, rt, MSG_DONTWAIT) < 0) { 390 struct rtable *rt = skb_rtable(skb); local 391 struct net *net = dev_net(rt->dst.dev); 429 rt = ip_route_output_key(net, &fl4); 430 if (IS_ERR(rt)) 432 if (icmpv4_xrlim_allow(net, rt, 352 icmp_push_reply(struct icmp_bxm *icmp_param, struct flowi4 *fl4, struct ipcm_cookie *ipc, struct rtable **rt) argument 448 struct rtable *rt, *rt2; local 549 struct rtable *rt = skb_rtable(skb_in); local 947 struct rtable *rt = skb_rtable(skb); local [all...] |
H A D | netfilter.c | 24 struct rtable *rt; local 46 rt = ip_route_output_key(net, &fl4); 47 if (IS_ERR(rt)) 48 return PTR_ERR(rt); 52 skb_dst_set(skb, &rt->dst); 179 struct rtable *rt = ip_route_output_key(net, &fl->u.ip4); local 180 if (IS_ERR(rt)) 181 return PTR_ERR(rt); 182 *dst = &rt->dst;
|
H A D | ip_output.c | 133 struct rtable *rt = skb_rtable(skb); local 143 if (ip_dont_fragment(sk, &rt->dst)) 147 iph->ttl = ip_select_ttl(inet, &rt->dst); 155 ip_options_build(skb, &opt->opt, daddr, rt, 0); 169 struct rtable *rt = (struct rtable *)dst; local 175 if (rt->rt_type == RTN_MULTICAST) { 177 } else if (rt->rt_type == RTN_BROADCAST) 196 nexthop = (__force u32) rt_nexthop(rt, ip_hdr(skb)->daddr); 276 struct rtable *rt = skb_rtable(skb); local 277 struct net_device *dev = rt 368 struct rtable *rt; local 491 struct rtable *rt = skb_rtable(skb); local 857 struct rtable *rt = (struct rtable *)cork->dst; local 1087 struct rtable *rt; local 1165 struct rtable *rt; local 1330 struct rtable *rt = (struct rtable *)cork->dst; local 1534 struct rtable *rt = skb_rtable(skb); local [all...] |
/net/ipv6/netfilter/ |
H A D | ip6t_rpfilter.c | 32 struct rt6_info *rt; local 56 rt = (void *) ip6_route_lookup(dev_net(dev), &fl6, lookup_flags); 57 if (rt->dst.error) 60 if (rt->rt6i_flags & (RTF_REJECT|RTF_ANYCAST)) 63 if (rt->rt6i_flags & RTF_LOCAL) { 68 if (rt->rt6i_idev->dev == dev || (flags & XT_RPFILTER_LOOSE)) 71 ip6_rt_put(rt); 77 const struct rt6_info *rt = (const void *) skb_dst(skb); local 78 return rt && (rt [all...] |
/net/appletalk/ |
H A D | atalk_proc.c | 125 struct atalk_route *rt; local 133 rt = &atrtr_default; 135 ntohs(rt->gateway.s_net), rt->gateway.s_node, 136 rt->flags, rt->dev->name); 139 rt = v; 141 ntohs(rt->target.s_net), rt->target.s_node, 142 ntohs(rt [all...] |
H A D | ddp.c | 505 struct atalk_route *rt; local 521 for (rt = atalk_routes; rt; rt = rt->next) { 522 if (r->rt_flags != rt->flags) 525 if (ta->sat_addr.s_net == rt->target.s_net) { 526 if (!(rt->flags & RTF_HOST)) 528 if (ta->sat_addr.s_node == rt->target.s_node) 558 if (!rt) { 879 struct rtentry rt; local 1317 struct atalk_route *rt; local 1575 struct atalk_route *rt; local [all...] |
/net/netfilter/ |
H A D | nf_conntrack_broadcast.c | 30 struct rtable *rt = skb_rtable(skb); local 38 if (rt == NULL || !(rt->rt_flags & RTCF_BROADCAST)) 44 in_dev = __in_dev_get_rcu(rt->dst.dev);
|
/net/netfilter/ipvs/ |
H A D | ip_vs_xmit.c | 128 struct rtable *rt; local 138 rt = ip_route_output_key(net, &fl4); 139 if (IS_ERR(rt)) { 141 if (PTR_ERR(rt) == -EINVAL && *saddr && 150 ip_rt_put(rt); 157 return rt; 161 static inline int __ip_vs_is_local_route6(struct rt6_info *rt) argument 163 return rt->dst.dev && rt->dst.dev->flags & IFF_LOOPBACK; 266 struct rtable *rt; /* Rout local 410 struct rt6_info *rt; /* Route to the other host */ local 651 struct rtable *rt; /* Route to the other host */ local 741 struct rt6_info *rt; /* Route to the other host */ local 929 struct rtable *rt; /* Route to the other host */ local 1024 struct rt6_info *rt; /* Route to the other host */ local 1202 struct rtable *rt; /* Route to the other host */ local 1295 struct rt6_info *rt; /* Route to the other host */ local [all...] |
/net/openvswitch/ |
H A D | vport-gre.c | 136 struct rtable *rt; local 156 rt = ip_route_output_key(net, &fl); 157 if (IS_ERR(rt)) 158 return PTR_ERR(rt); 162 min_headroom = LL_RESERVED_SPACE(rt->dst.dev) + rt->dst.header_len 197 return iptunnel_xmit(skb->sk, rt, skb, fl.saddr, 201 ip_rt_put(rt);
|