diff options
author | brian <brian@FreeBSD.org> | 1999-09-04 00:00:21 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1999-09-04 00:00:21 +0000 |
commit | dcb79a71e6383c101218c59ed4feb6708a40b81a (patch) | |
tree | 8c060c30bd6bd3880f7c8ac84b8114e6b91f1603 /usr.sbin/ppp/link.h | |
parent | a14fe466b1bc7f6e0a024da706d5f849e07a3b40 (diff) | |
download | FreeBSD-src-dcb79a71e6383c101218c59ed4feb6708a40b81a.zip FreeBSD-src-dcb79a71e6383c101218c59ed4feb6708a40b81a.tar.gz |
o Split the two IPCP queues into three - one for FSM data
(LCP/CCP/IPCP), one for urgent IP traffic and one for
everything else.
o Add the ``set urgent'' command for adjusting the list of
urgent port numbers. The default urgent ports are 21, 22,
23, 513, 514, 543 and 544 (Ports 80 and 81 have been
removed from the default priority list).
o Increase the buffered packet threshold from 20 to 30.
o Report the number of packets in the IP output queue and the
list of urgent ports under ``show ipcp''.
Diffstat (limited to 'usr.sbin/ppp/link.h')
-rw-r--r-- | usr.sbin/ppp/link.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/ppp/link.h b/usr.sbin/ppp/link.h index 89a3c37..e277630 100644 --- a/usr.sbin/ppp/link.h +++ b/usr.sbin/ppp/link.h @@ -31,7 +31,6 @@ #define PHYSICAL_LINK 1 #define LOGICAL_LINK 2 -#define LINK_QUEUES (PRI_MAX + 1) #define NPROTOSTAT 13 struct bundle; @@ -43,7 +42,7 @@ struct link { const char *name; /* Points to datalink::name */ int len; /* full size of parent struct */ struct pppThroughput throughput; /* Link throughput statistics */ - struct mqueue Queue[LINK_QUEUES]; /* Our output queue of mbufs */ + struct mqueue Queue[2]; /* Our output queue of mbufs */ u_long proto_in[NPROTOSTAT]; /* outgoing protocol stats */ u_long proto_out[NPROTOSTAT]; /* incoming protocol stats */ @@ -55,6 +54,9 @@ struct link { int nlayers; }; +#define LINK_QUEUES(link) (sizeof (link)->Queue / sizeof (link)->Queue[0]) +#define LINK_HIGHQ(link) ((link)->Queue + LINK_QUEUES(link) - 1) + extern void link_AddInOctets(struct link *, int); extern void link_AddOutOctets(struct link *, int); |