Lines Matching +defs:a +defs:link

5  * Portions of this code were made possible in part by a gift from 
82 { "link", TOK_LINK },
184 * returns -1 if s is not a valid time, otherwise, return time in us
363 const struct dn_flow_queue *a = pa;
368 res = a->len - b->len;
371 res = a->len_bytes - b->len_bytes;
375 res = a->tot_pkts - b->tot_pkts;
379 res = a->tot_bytes - b->tot_bytes;
390 /* print a mask and header for the subsequent list of flows */
552 * generic list routine. We expect objects in a specific order, i.e.
554 * link; scheduler; internal flowset if any; instances
555 * we can tell a pipe from the number.
559 * link i (int queue); scheduler i; si(i) { flowsets() : queues }
631 /* This starts a new object so flush buffer */
674 uintptr_t a[1]; /* add more if we want a list */
679 cmd.a[0] = i;
691 * Some link types introduce extra delays in the transmission
692 * of a packet, e.g. because of MAC level framing, contention on
696 * on the link type. Additionally, packets may be dropped after this
697 * time (e.g. on a wireless link after too many retransmissions).
715 * Vertical lines represent constant delay for a range of
716 * probabilities; horizontal lines correspond to a discontinuty
717 * in the delay distribution: the link will use the largest delay
718 * for a given probability.
721 * in a file as described below, and issue the command
726 * a separator and '#' indicating the beginning a comment:
737 * Optional a name (listed by "ipfw pipe show")
754 * Example of a profile file:
767 * Internally, we will convert the curve to a fixed number of
768 * samples, and when it is time to transmit a packet we will
784 * returns 1 if s is a non-negative number, with at least one '.'
799 * Take as input a string describing a bandwidth value
809 if (arg[0] >= 'a' && arg[0] <= 'z') {
875 struct dn_link *link)
890 /* XXX link never NULL? */
891 p->link_nr = link->link_nr;
934 read_bandwidth(arg, &link->bandwidth, buf, sizeof(buf));
1259 * When we configure a new scheduler, an empty pipe is created, so:
1299 * 1 scheduler, 1 link, 1 flowset, 1 profile
1321 errx(EX_USAGE, "need a pipe/flowset/sched number");
1323 /* all commands start with a 'CONFIGURE' and a version */
1329 /* Allocate space for the WF2Q+ scheduler, its link
1333 * XXX todo: add a flag to record if a parameter
1335 * If we do a 'pipe config' mask -> sched_mask.
1336 * The FIFO scheduler and link are derived from the
1483 uint32_t a;
1552 a = strtoul(av[0]+1, &end, 0);
1554 a = (a == 32) ? ~0 : (1 << a) - 1;
1556 a = strtoul(av[0], &end, 0);
1558 *p32 = a;
1560 if (a > 0xFFFF)
1563 *p16 = (uint16_t)a;
1565 if (a > 0xfffff)
1568 *p20 = (uint32_t)a;
1570 if (a > 128)
1574 n2mask(pa6, a);
1576 if (a > 0xFF)
1579 mask->proto = (uint8_t)a;
1581 if (a != 0)
1674 NEED1("type needs a string");
1722 NEED1("pipe/link/sched needs number\n");
1765 /* XXX accept a 0 scheduler to keep the default */
1833 * Ticks needed for sending a medium-sized packet.
1834 * Unfortunately, when we are configuring a WF2Q+ queue, we
1841 if (p.bandwidth==0) /* this is a WF2Q+ queue */
1930 * Format for a range can be n1-n2 or n3 n4 n5 ...
1931 * In a range n1 must be <= n2, otherwise the range is ignored.
1932 * A number 'n4' is translate in a range 'n4-n4'
1961 * there might be a risk of truncation and we will need to
1962 * retry with a larger buffer.
1985 * in oid.id), unless we are requesting a subset of objects,
1999 /* Try a few times, until the buffer fits */