Searched refs:cost (Results 1 - 25 of 49) sorted by relevance

12

/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/iptables-1.4.12.1/include/linux/netfilter/
H A Dxt_limit.h20 __u32 credit_cap, cost; member in struct:xt_rateinfo
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/include/linux/netfilter/
H A Dxt_limit.h16 u_int32_t credit_cap, cost; member in struct:xt_rateinfo
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/include/linux/netfilter_bridge/
H A Debt_limit.h20 u_int32_t credit_cap, cost; member in struct:ebt_limit_info
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/router/iptables-1.x/include/linux/netfilter_ipv4/
H A Dipt_limit.h24 u_int32_t credit_cap, cost; member in struct:ipt_rateinfo
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/router/iptables-1.x/include/linux/netfilter_ipv6/
H A Dip6t_limit.h23 u_int32_t credit_cap, cost; member in struct:ip6t_rateinfo
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/net/netfilter/
H A Dxt_limit.c32 `credit_cap'. The `peak rate' becomes the cost of passing the
33 test, `cost'.
37 discarded. Every time the match passes, you lose `cost' credits;
78 if (r->credit >= r->cost) {
80 r->credit -= r->cost;
120 if (r->cost == 0) {
126 r->cost = user2credits(r->avg);
138 u_int32_t credit_cap, cost; member in struct:compat_xt_rateinfo
154 .cost = cm->cost,
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/zebra/ospfd/
H A Dospf_ia.c272 new_or->cost = abr_or->cost + metric;
318 u_int32_t cost;
334 cost = abr_or->cost + GET_METRIC (lsa->metric);
352 new_or->cost = cost;
401 if (or->cost < cost)
408 if (or->cost
317 u_int32_t cost; local
447 u_int32_t cost; local
[all...]
H A Dospf_abr.c237 struct prefix_ipv4 *p, u_int32_t cost)
251 if (range->cost_config != cost)
253 range->cost_config = cost;
448 zlog_info ("ospf_abr_update_aggregate(): use configured cost %d",
451 range->cost = range->cost_config;
456 range->cost = or->cost; /* 1st time get 1st cost */
458 if (or->cost < range->cost)
235 ospf_area_range_cost_set(struct ospf *ospf, struct in_addr area_id, struct prefix_ipv4 *p, u_int32_t cost) argument
483 ospf_abr_check_nssa_range(struct prefix_ipv4 *p, u_int32_t cost, struct ospf_area *area) argument
546 ospf_abr_translate_nssa_range(struct prefix_ipv4 *p, u_int32_t cost) argument
554 ospf_abr_announce_network_to_area(struct prefix_ipv4 *p, u_int32_t cost, struct ospf_area *area) argument
923 ospf_abr_announce_rtr_to_area(struct prefix_ipv4 *p, u_int32_t cost, struct ospf_area *area) argument
[all...]
H A Dospf_abr.h50 /* Range cost. */
51 u_int32_t cost; member in struct:ospf_area_range
53 /* Configured range cost. */
H A Dospf_route.c157 if (or->type == newor->type && or->cost == newor->cost)
297 or->cost = v->distance;
354 or->cost = v->distance;
433 if (v->distance > cur_or->cost ||
448 or->cost = v->distance;
462 u_int32_t cost; local
487 cost. */
488 cost = v->distance + ntohs (link->m[0].metric);
491 zlog_info ("ospf_intra_add_stub(): calculated cost i
[all...]
H A Dospf_ase.c75 if (or->cost < OSPF_LS_INFINITY)
87 /* Now find the route with least cost. */
90 if (or->cost < OSPF_LS_INFINITY)
94 else if (best->cost > or->cost)
96 else if (best->cost == or->cost &&
258 new->cost = asbr_route->cost + metric; /* X + Y */
264 new->cost
[all...]
H A Dospf_route.h116 u_int32_t cost; /* i.e. metric. */ member in struct:ospf_route
H A Dospf_interface.c57 /* If all else fails, use default OSPF cost */ local
58 u_int32_t cost;
64 /* A specifed ip ospf cost overrides a calculated one. */
67 cost = OSPF_IF_PARAM (oi, output_cost_cmd);
68 /* See if a cost can be calculated from the zebra processes
72 cost = (u_int32_t) ((double)refbw / (double)bw + (double)0.5);
73 if (cost < 1)
74 cost = 1;
75 else if (cost > 65535)
76 cost
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/net/bridge/netfilter/
H A Debt_limit.c46 if (info->credit >= info->cost) {
48 info->credit -= info->cost;
89 info->cost = user2credits(info->avg);
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/char/rio/
H A Droute.h51 info about cost etc. */
75 unsigned char cost; /* Cost down this link */ member in struct:COST_ROUTE
82 /* cost / route for this link */
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/router/bridge-1.x/brctl/
H A Dbrctl_cmd.c296 int cost, err; local
298 if (sscanf(argv[3], "%i", &cost) != 1) {
299 fprintf(stderr, "bad path cost value\n");
303 err = br_set_path_cost(argv[1], argv[2], cost);
305 fprintf(stderr, "set path cost failed: %s\n",
312 int cost, err; local
314 if (sscanf(argv[3], "%i", &cost) != 1) {
319 err = br_set_path_cost(argv[1], argv[2], cost);
460 "<bridge> <port> <cost>\tset path cost" },
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/bzip2/
H A Dcompress.c256 UInt16 cost[BZ_N_GROUPS]; local
353 Calculate the cost of this group as coded
356 for (t = 0; t < nGroups; t++) cost[t] = 0;
383 cost[0] = cost01 & 0xffff; cost[1] = cost01 >> 16;
384 cost[2] = cost23 & 0xffff; cost[3] = cost23 >> 16;
385 cost[4] = cost45 & 0xffff; cost[5] = cost45 >> 16;
391 for (t = 0; t < nGroups; t++) cost[
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/zebra/ospf6d/
H A Dospf6_interface.h61 u_int32_t cost; member in struct:ospf6_interface
H A Dospf6_asbr.c64 OSPF6_ASBR_METRIC_SET (external, route.path.cost);
190 request.path.cost = asbr_entry.path.cost;
197 request.path.cost = asbr_entry.path.cost
H A Dospf6_route.h88 u_int32_t cost;
87 u_int32_t cost; member in struct:ospf6_path
H A Dospf6_abr.c118 request->path.cost = abr_entry.path.cost +
220 request->path.cost = abr_entry.path.cost +
434 if (target.path.cost >= LS_INFINITY ||
H A Dospf6_route.c88 if (p1->cost < p2->cost)
90 else if (p1->cost > p2->cost)
151 zlog_info ("origin: %hx %x %x bits: %x opt: %x%x%x popt: %x area: %x type: %d cost %d %d %d",
155 pn->path.type, pn->path.metric_type, pn->path.cost, pn->path.cost_e2);
167 zlog_info (" origin: %hx %x %x bits: %x opt: %x%x%x popt: %x area: %x type: %d cost %d %d %d",
171 pn2->path.type, pn2->path.metric_type, pn2->path.cost, pn2->path.cost_e2);
424 zlog_info ("ROUTE: Area: %s type: %s cost: %lu (E2: %lu)",
426 (u_long) request->path.cost, (u_lon
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/minidlna/ffmpeg-0.5.1/libavcodec/
H A Dpngenc.c154 int cost, bcost = INT_MAX; local
159 cost = 0;
161 cost += abs((int8_t)buf1[i]);
162 if(cost < bcost) {
163 bcost = cost;
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/netatalk-2.2.0/etc/papd/
H A Dqueries.c228 char cost[ 60 ]; local
238 sprintf( cost, "%d", printer->p_pagecost );
239 append( out, cost, strlen( cost ));
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/netatalk-2.2.5/etc/papd/
H A Dqueries.c228 char cost[ 60 ]; local
238 sprintf( cost, "%d", printer->p_pagecost );
239 append( out, cost, strlen( cost ));

Completed in 158 milliseconds

12