Searched refs:metric (Results 26 - 50 of 80) sorted by relevance

1234

/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/include/net/
H A Ddst.h112 dst_metric(const struct dst_entry *dst, int metric) argument
114 return dst->metrics[metric-1];
137 dst_metric_locked(struct dst_entry *dst, int metric) argument
139 return dst_metric(dst, RTAX_LOCK) & (1<<metric);
H A Dip6_route.h74 int metric, __u32 flags);
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/minidlna/libvorbis-1.2.3/vq/
H A Dvqgen.h71 float (*metric)(vqgen *,float *, float *),
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/router/busybox-1.x/networking/
H A Droute.c102 "\011\020metric\0"
478 int flgs, ref, use, metric, mtu, win, ir; local
494 devname, &d, &g, &flgs, &ref, &use, &metric, &m,
529 printf("%-6d %-2d %7d %s\n", metric, ref, use, devname);
547 int iflags, metric, refcnt, use, prefix_len, slen; local
560 &metric, &use, &refcnt, &iflags, iface);
614 addr6, naddr6, flags, metric, refcnt, use, iface);
H A Dinterface.c327 int metric; /* routing metric */ member in struct:interface
598 ife->metric = 0;
600 ife->metric = ifr.ifr_metric;
1045 printf(" MTU:%d Metric:%d", ptr->mtu, ptr->metric ? ptr->metric : 1);
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/zebra/bgpd/
H A Dbgp_zebra.c264 /* Nexthop, ifindex, distance, metric. */
278 api.metric = stream_getl (s);
280 api.metric = 0;
283 bgp_redistribute_add ((struct prefix *)&p, &nexthop, api.metric, api.type);
316 /* Nexthop, ifindex, distance, metric. */
332 api.metric = stream_getl (s);
334 api.metric = 0;
341 bgp_redistribute_add ((struct prefix *)&p, NULL, api.metric, api.type);
699 api.metric = info->attr->med;
761 api.metric
898 bgp_redistribute_metric_set(struct bgp *bgp, afi_t afi, int type, u_int32_t metric) argument
[all...]
H A Dbgp_routemap.c67 metric : Done
85 metric : Done
86 metric-type : Not yet
289 /* `match metric METRIC' */
312 /* Route map `match metric' match statement. `arg' is MED value */
329 /* Free route map's compiled `match metric' value. */
336 /* Route map commands for metric matching. */
339 "metric",
770 /* `set metric METRIC' */
772 /* Set metric t
765 char *metric; local
811 u_int32_t metric; local
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/zebra/ospf6d/
H A Dospf6_prefix.c40 ospf6_prefix_create (u_int8_t options, u_int16_t metric, struct prefix_ipv6 *p) argument
59 o6p->prefix_metric = htons (metric);
H A Dospf6_routemap.c113 "metric-type",
123 char *metric = rule; local
129 route->path.cost = atoi (metric);
130 route->path.cost_e2 = atoi (metric);
149 "metric",
246 /* add "set metric-type" */
249 "set metric-type (type-1|type-2)",
251 "Type of metric\n"
252 "OSPF6 external type 1 metric\n"
253 "OSPF6 external type 2 metric\
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/zebra/ripngd/
H A Dripng_zebra.c116 /* Nexthop, ifindex, distance, metric. */
132 api.metric = stream_getl (s);
134 api.metric = 0;
161 ripng_redistribute_metric_set (int type, int metric)
164 ripng->route_map[type].metric = metric;
171 ripng->route_map[type].metric = 0;
353 "redistribute kernel metric <0-16>",
366 "no redistribute kernel metric",
374 "no redistribute kernel metric <
160 ripng_redistribute_metric_set(int type, int metric) argument
[all...]
H A Dripng_route.c93 aggregate->metric = 1;
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/zebra/lib/
H A Dif.h92 /* Interface metric */
93 int metric; member in struct:interface
H A Dzclient.c328 /* Nexthop, ifindex, distance and metric information. */
348 stream_putl (s, api->metric);
382 /* Nexthop, ifindex, distance and metric information. */
402 stream_putl (s, api->metric);
437 /* Nexthop, ifindex, distance and metric information. */
457 stream_putl (s, api->metric);
491 /* Nexthop, ifindex, distance and metric information. */
511 stream_putl (s, api->metric);
567 ifp->metric = stream_getl (s);
603 ifp->metric
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/zebra/zebra/
H A Dzserv.c103 stream_putl (s, ifp->metric);
141 stream_putl (s, ifp->metric);
263 stream_putl (s, ifp->metric);
295 stream_putl (s, ifp->metric);
354 stream_putl (s, rib->metric);
582 stream_putl (s, rib->metric);
705 stream_putl (s, rib->metric);
767 stream_putl (s, rib->metric);
823 stream_putl (s, rib->metric);
966 rib->metric
[all...]
H A Drt_socket.c41 int metric);
156 rib->metric);
390 rib->metric);
H A Dioctl.c104 * get interface metric
117 ifp->metric = ifreq.ifr_metric;
118 if (ifp->metric == 0)
119 ifp->metric = 1;
121 ifp->metric = -1;
H A Drib.h49 u_int32_t metric; member in struct:rib
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/zebra/ospfd/
H A Dospf_asbr.c124 values->metric = -1;
132 return values1->metric == values2->metric &&
H A Dospf_ase.c240 struct ospf_route *asbr_route, u_int32_t metric)
258 new->cost = asbr_route->cost + metric; /* X + Y */
265 new->u.ext.type2_cost = metric; /* Y */
284 u_int32_t metric; local
313 if ((metric = GET_METRIC (al->e[0].metric)) >= OSPF_LS_INFINITY)
412 metric, and Y is a type 1 or 2 external metric. */
419 If the external metric type is 1, then the path-type is set
421 external metric typ
239 ospf_ase_calculate_new_route(struct ospf_lsa *lsa, struct ospf_route *asbr_route, u_int32_t metric) argument
[all...]
H A Dospf_abr.c471 set_metric (struct ospf_lsa *lsa, u_int32_t metric)
475 metric = htonl (metric);
476 mp = (char *) &metric;
479 memcpy(header->metric, mp, 3);
574 "old metric: %d, new metric: %d",
575 GET_METRIC (sl->metric), cost);
578 if (old && (GET_METRIC (sl->metric) == cost))
944 "old metric
470 set_metric(struct ospf_lsa *lsa, u_int32_t metric) argument
[all...]
H A Dospf_lsa.c55 get_metric (u_char *metric)
58 m = metric[0];
59 m = (m << 8) + metric[1];
60 m = (m << 8) + metric[2];
1079 u_int32_t metric;
1082 /* Put 0 metric. TOS metric is not supported. */ argument
1083 metric = htonl (metric_value);
1084 mp = (char *) &metric;
1092 u_int32_t metric)
54 get_metric(u_char *metric) argument
1070 u_int32_t metric; local
1100 ospf_summary_lsa_new(struct ospf_area *area, struct prefix *p, u_int32_t metric, struct in_addr id) argument
1139 ospf_summary_lsa_originate(struct prefix_ipv4 *p, u_int32_t metric, struct ospf_area *area) argument
1208 ospf_summary_asbr_lsa_body_set(struct stream *s, struct prefix *p, u_int32_t metric) argument
1226 ospf_summary_asbr_lsa_new(struct ospf_area *area, struct prefix *p, u_int32_t metric, struct in_addr id) argument
1265 ospf_summary_asbr_lsa_originate(struct prefix_ipv4 *p, u_int32_t metric, struct ospf_area *area) argument
[all...]
H A Dospf_vty.c121 str2metric (char *str, int *metric)
127 *metric = strtol (str, NULL, 10);
128 if (*metric < 0 && *metric > 16777214)
130 /* vty_out (vty, "OSPF metric value is invalid%s", VTY_NEWLINE); */
462 "User specified metric for this range\n"
463 "Advertised metric for this range\n")
474 "User specified metric for this range\n"
475 "Advertised metric for this range\n")
544 "User specified metric fo
118 str2metric(char *str, int *metric) argument
5261 int metric = -1; variable
5331 int metric = -1; variable
5408 int metric = -1; variable
5565 int metric = -1; variable
5621 int metric = -1; variable
5667 int metric = -1; variable
5748 int metric = -1; variable
5809 int metric = -1; variable
5856 int metric = -1; variable
5959 int metric = -1; variable
[all...]
H A Dospf_zebra.c66 zlog_info ("Zebra: interface add %s index %d flags %ld metric %d mtu %d",
67 ifp->name, ifp->ifindex, ifp->flags, ifp->metric, ifp->mtu);
111 zlog_info ("Zebra: interface delete %s index %d flags %ld metric %d mtu %d",
112 ifp->name, ifp->ifindex, ifp->flags, ifp->metric, ifp->mtu);
158 ifp->metric = stream_getl (s);
330 /* OSPF pass nexthop and metric */
360 /* Nexthop, ifindex, distance and metric information. */
402 zlog_info ("Zebra: Route add %s/%d nexthop %s metric %d",
404 metric);
775 /* Nexthop, ifindex, distance, metric
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/router/rc/
H A Dnetwork.c66 char *ipaddr, *netmask, *gateway, *metric; local
80 metric = gateway;
81 gateway = strsep(&metric, ":");
82 if (!gateway || !metric)
87 route_add(ifname, atoi(metric) + 1, ipaddr, gateway, netmask);
97 char *ipaddr, *netmask, *gateway, *metric; local
111 metric = gateway;
112 gateway = strsep(&metric, ":");
113 if (!gateway || !metric)
118 route_del(ifname, atoi(metric)
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/router/shared/
H A Dnvparse.c1631 char *ipaddr, *netmask, *gateway, *metric, *ifname; local
1648 metric = gateway;
1649 gateway = strsep(&metric, ":");
1650 if (!gateway || !metric)
1652 ifname = metric;
1653 metric = strsep(&ifname, ":");
1654 if (!metric || !ifname)
1661 gateway, metric);
1667 wan_cur == wan_route ? "" : " ", ipaddr, netmask, gateway, metric);

Completed in 315 milliseconds

1234