Lines Matching refs:rt
56 static int ipddp_delete(struct ipddp_route *rt);
57 static struct ipddp_route* __ipddp_find_route(struct ipddp_route *rt);
124 struct ipddp_route *rt; in ipddp_xmit() local
135 for(rt = ipddp_route_list; rt != NULL; rt = rt->next) in ipddp_xmit()
137 if(rt->ip == paddr) in ipddp_xmit()
140 if(rt == NULL) { in ipddp_xmit()
145 our_addr = atalk_find_dev_addr(rt->dev); in ipddp_xmit()
164 if(rt->dev->type == ARPHRD_LOCALTLK) in ipddp_xmit()
171 ddp->deh_dnet = rt->at.s_net; /* FIXME more hops?? */ in ipddp_xmit()
174 ddp->deh_dnode = rt->at.s_node; in ipddp_xmit()
186 aarp_send_ddp(rt->dev, skb, &rt->at, NULL); in ipddp_xmit()
199 struct ipddp_route *rt = kzalloc(sizeof(*rt), GFP_KERNEL); in ipddp_create() local
201 if (rt == NULL) in ipddp_create()
204 rt->ip = new_rt->ip; in ipddp_create()
205 rt->at = new_rt->at; in ipddp_create()
206 rt->next = NULL; in ipddp_create()
207 if ((rt->dev = atrtr_get_dev(&rt->at)) == NULL) { in ipddp_create()
208 kfree(rt); in ipddp_create()
213 if (__ipddp_find_route(rt)) { in ipddp_create()
215 kfree(rt); in ipddp_create()
219 rt->next = ipddp_route_list; in ipddp_create()
220 ipddp_route_list = rt; in ipddp_create()
231 static int ipddp_delete(struct ipddp_route *rt) in ipddp_delete() argument
239 if(tmp->ip == rt->ip && in ipddp_delete()
240 tmp->at.s_net == rt->at.s_net && in ipddp_delete()
241 tmp->at.s_node == rt->at.s_node) in ipddp_delete()
258 static struct ipddp_route* __ipddp_find_route(struct ipddp_route *rt) in __ipddp_find_route() argument
264 if(f->ip == rt->ip && in __ipddp_find_route()
265 f->at.s_net == rt->at.s_net && in __ipddp_find_route()
266 f->at.s_node == rt->at.s_node) in __ipddp_find_route()