Lines Matching refs:miniroute

59 	struct ipv6_miniroute *miniroute;  in add_ipv6_miniroute()  local
61 miniroute = malloc ( sizeof ( *miniroute ) ); in add_ipv6_miniroute()
62 if ( miniroute ) { in add_ipv6_miniroute()
64 miniroute->netdev = netdev_get ( netdev ); in add_ipv6_miniroute()
65 miniroute->prefix = prefix; in add_ipv6_miniroute()
66 miniroute->prefix_len = prefix_len; in add_ipv6_miniroute()
67 miniroute->address = address; in add_ipv6_miniroute()
68 miniroute->gateway = gateway; in add_ipv6_miniroute()
72 list_add_tail ( &miniroute->list, &miniroutes ); in add_ipv6_miniroute()
74 list_add ( &miniroute->list, &miniroutes ); in add_ipv6_miniroute()
78 return miniroute; in add_ipv6_miniroute()
86 static void del_ipv6_miniroute ( struct ipv6_miniroute *miniroute ) { in del_ipv6_miniroute() argument
87 netdev_put ( miniroute->netdev ); in del_ipv6_miniroute()
88 list_del ( &miniroute->list ); in del_ipv6_miniroute()
89 free ( miniroute ); in del_ipv6_miniroute()
103 struct ipv6_miniroute *miniroute; in add_ipv6_address() local
109 miniroute = add_ipv6_miniroute ( netdev, prefix, prefix_len, address, in add_ipv6_address()
111 if ( ! miniroute ) in add_ipv6_address()
123 struct ipv6_miniroute *miniroute; in del_ipv6_address() local
125 list_for_each_entry ( miniroute, &miniroutes, list ) { in del_ipv6_address()
126 if ( miniroute->netdev == netdev ) { in del_ipv6_address()
127 del_ipv6_miniroute ( miniroute ); in del_ipv6_address()
185 struct ipv6_miniroute *miniroute; in ipv6_tx() local
203 list_for_each_entry ( miniroute, &miniroutes, list ) { in ipv6_tx()
204 if ( ( memcmp ( &ip6hdr->dest, &miniroute->prefix, in ipv6_tx()
205 miniroute->prefix_len ) == 0 ) || in ipv6_tx()
206 ( IP6_EQUAL ( miniroute->gateway, ip6_none ) ) ) { in ipv6_tx()
207 netdev = miniroute->netdev; in ipv6_tx()
208 ip6hdr->src = miniroute->address; in ipv6_tx()
209 if ( ! ( IS_UNSPECIFIED ( miniroute->gateway ) ) ) { in ipv6_tx()
210 next_hop = miniroute->gateway; in ipv6_tx()