Searched refs:metric (Results 1 - 25 of 80) sorted by relevance

1234

/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/zebra/ripngd/
H A Dripng_routemap.c92 u_char metric;
108 rinfo->metric += mod->metric;
110 rinfo->metric -= mod->metric;
112 rinfo->metric = mod->metric;
114 if (rinfo->metric < 1)
115 rinfo->metric = 1;
116 if (rinfo->metric > RIPNG_METRIC_INFINIT
90 u_char metric; member in struct:rip_metric_modifier
128 long metric; local
[all...]
H A Dripng_route.h35 u_char metric; member in struct:ripng_aggregate
H A Dripngd.c320 if (rte->metric == RIPNG_METRIC_NEXTHOP)
323 zlog_info (" %s/%d metric %d tag %d",
325 rte->metric, ntohs (rte->tag));
460 /* - The metric for the route is set to 16 (infinity). This causes
462 rinfo->metric = RIPNG_METRIC_INFINITY;
477 if (rinfo->metric != RIPNG_METRIC_INFINITY)
541 newinfo.metric = rte->metric;
554 rte->metric = newinfo.metric;
1247 ripng_write_rte(int num, struct stream *s, struct prefix_ipv6 *p, u_int16_t tag, u_char metric) argument
1282 u_char metric; local
[all...]
H A Dripngd.h38 /* RIPng metric and multicast group address. */
77 /* Default value for "default-metric" command. */
136 u_int32_t metric; member in struct:ripng::__anon3135
146 u_char metric; member in struct:rte
175 u_char metric; member in struct:ripng_info
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/zebra/ospf6d/
H A Dospf6_abr.h28 u_int32_t metric; /* 12bits reserved, 20bits metric */ member in struct:ospf6_inter_area_prefix_lsa
37 u_int32_t metric; /* 12bits reserved, 20bits metric */ member in struct:ospf6_inter_area_router_lsa
H A Dospf6_redistribute.h45 u_int32_t metric; member in struct:ospf6_redistribute_info
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/router/busybox-1.x/examples/udhcp/
H A Dsample.bound18 metric=0
21 /sbin/route add default gw $i dev $interface metric $((metric++))
H A Dsample.renew18 metric=0
21 /sbin/route add default gw $i dev $interface metric $((metric++))
H A Dsimple.script25 metric=0
27 route add default gw $i dev $interface metric $((metric++))
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/zebra/ripd/
H A Drip_offset.c45 int metric; member in struct:rip_offset_list::__anon3127
115 int metric; local
129 /* Check metric. */
130 metric = atoi (metric_str);
131 if (metric < 0 || metric > 16)
133 vty_out (vty, "Invalid metric: %s%s", metric_str, VTY_NEWLINE);
143 offset->direct[direct].metric = metric;
153 int metric; local
209 rip_offset_list_apply_in(struct prefix_ipv4 *p, struct interface *ifp, u_int32_t *metric) argument
248 rip_offset_list_apply_out(struct prefix_ipv4 *p, struct interface *ifp, u_int32_t *metric) argument
[all...]
H A Drip_routemap.c154 /* `match metric METRIC' */
160 u_int32_t *metric;
165 metric = rule;
168 if (rinfo->metric == *metric)
176 /* Route map `match metric' match statement. `arg' is METRIC value */
180 u_int32_t *metric;
182 metric = XMALLOC (MTYPE_ROUTE_MAP_COMPILED, sizeof (u_int32_t));
183 *metric = atoi (arg);
185 if(*metric >
159 u_int32_t *metric; local
179 u_int32_t *metric; local
451 u_int32_t *metric; local
471 u_int32_t *metric; local
[all...]
H A Drip_zebra.c48 u_int32_t metric, u_char distance)
62 api.metric = metric;
78 u_int32_t metric)
92 api.metric = metric;
125 /* Nexthop, ifindex, distance, metric. */
139 api.metric = stream_getl (s);
169 rip_redistribute_metric_set (int type, int metric)
172 rip->route_map[type].metric
46 rip_zebra_ipv4_add(struct prefix_ipv4 *p, struct in_addr *nexthop, u_int32_t metric, u_char distance) argument
76 rip_zebra_ipv4_delete(struct prefix_ipv4 *p, struct in_addr *nexthop, u_int32_t metric) argument
168 rip_redistribute_metric_set(int type, int metric) argument
175 rip_metric_unset(int type,int metric) argument
466 int metric; variable
[all...]
H A Dripd.c110 int metric;
137 int flags, refcnt, use, metric, mtu, window, rtt;
156 iface, dest, gate, &flags, &refcnt, &use, &metric,
168 fox_rt_info_table[j].metric=metric;
170 //sprintf(str, "addr: %x, metric: %d\n", fox_rt_info_table[j].prefix, fox_rt_info_table[j].metric);
269 rinfo->metric);
270 /* - The metric for the route is set to 16 (infinity). This causes
272 rinfo->metric
107 int metric; member in struct:fox_rt_info
134 int flags, refcnt, use, metric, mtu, window, rtt; local
[all...]
H A Dripd.h38 /* RIP metric infinity value.*/
119 /* RIP default metric. */
136 u_int32_t metric; member in struct:rip::__anon3131
148 u_int32_t metric; /* Metric value of rip route. */ member in struct:rte
185 u_int32_t metric; member in struct:rip_info
317 /* Default value for "default-metric" command. */
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/zebra/ospfd/
H A Dospf_asbr.h28 int32_t metric; member in struct:route_map_set_values
51 #define ROUTEMAP_METRIC(E) (E)->route_map_set.metric
H A Dospf_routemap.c235 /* Route map commands for metric matching. */
422 /* `set metric METRIC' */
423 /* Set metric to attribute. */
428 u_int32_t *metric; local
434 metric = rule;
437 /* Set metric out value. */
438 ei->route_map_set.metric = *metric;
443 /* set metric compilation. */
447 u_int32_t *metric; local
[all...]
H A Dospf_ia.c212 u_int32_t metric;
224 metric = GET_METRIC (sl->metric);
226 if (metric == OSPF_LS_INFINITY)
272 new_or->cost = abr_or->cost + metric;
334 cost = abr_or->cost + GET_METRIC (lsa->metric);
464 cost = abr_or->cost + GET_METRIC (lsa->metric);
545 u_int32_t metric;
557 metric = GET_METRIC (sl->metric);
211 u_int32_t metric; local
544 u_int32_t metric; local
[all...]
H A Dospf_lsa.h144 u_int16_t metric; member in struct:router_lsa_link::__anon3107
161 u_int16_t metric; member in struct:router_lsa::__anon3108
179 u_char metric[3]; member in struct:summary_lsa
190 u_char metric[3]; member in struct:as_external_lsa::__anon3109
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/zebra/bgpd/
H A Dbgp_nexthop.h36 /* IGP route's metric. */
37 u_int32_t metric; member in struct:bgp_nexthop_cache
H A Dbgp_nexthop.c291 if (bnc->metric != oldbnc->metric)
311 ri->igpmetric = bnc->metric;
379 if (bnc->metric != oldbnc->metric)
399 ri->igpmetric = bnc->metric;
851 u_int32_t metric;
866 metric = stream_getl (s);
873 bnc->metric = metric;
846 u_int32_t metric; local
939 u_int32_t metric; local
1041 u_int32_t metric = 0; local
1126 u_int32_t metric; local
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/zebra/zebra/
H A Drtread_proc.c53 int flags, refcnt, use, metric, mtu, window, rtt; local
75 iface, dest, gate, &flags, &refcnt, &use, &metric,
125 int metric, use, refcnt, flags; local
134 &metric, &use, &refcnt, &flags, iface);
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/zebra/lib/
H A Dzclient.h100 u_int32_t metric; member in struct:zapi_ipv4
152 u_int32_t metric; member in struct:zapi_ipv6
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/router/rc/
H A Dinterface.c154 route_manip(int cmd, char *name, int metric, char *dst, char *gateway, char *genmask) argument
171 rt.rt_metric = metric;
197 route_add(char *name, int metric, char *dst, char *gateway, char *genmask) argument
199 return route_manip(SIOCADDRT, name, metric, dst, gateway, genmask);
203 route_del(char *name, int metric, char *dst, char *gateway, char *genmask) argument
205 return route_manip(SIOCDELRT, name, metric, dst, gateway, genmask);
H A Drc.h99 extern int route_add(char *name, int metric, char *dst, char *gateway, char *genmask);
100 extern int route_del(char *name, int metric, char *dst, char *gateway, char *genmask);
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/iproute2/ip/
H A Difcfg136 ip ro append default dev $dev metric 30000 scope global
139 ip ro append default via $peer dev $dev metric 30001

Completed in 107 milliseconds

1234