summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/ipcp.h
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1999-09-04 00:00:21 +0000
committerbrian <brian@FreeBSD.org>1999-09-04 00:00:21 +0000
commitdcb79a71e6383c101218c59ed4feb6708a40b81a (patch)
tree8c060c30bd6bd3880f7c8ac84b8114e6b91f1603 /usr.sbin/ppp/ipcp.h
parenta14fe466b1bc7f6e0a024da706d5f849e07a3b40 (diff)
downloadFreeBSD-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/ipcp.h')
-rw-r--r--usr.sbin/ppp/ipcp.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/usr.sbin/ppp/ipcp.h b/usr.sbin/ppp/ipcp.h
index 6bd2829..586efeb 100644
--- a/usr.sbin/ppp/ipcp.h
+++ b/usr.sbin/ppp/ipcp.h
@@ -69,6 +69,12 @@ struct ipcp {
struct in_addr nbns[2]; /* NetBIOS NS addresses offered */
} ns;
+ struct {
+ unsigned nports; /* How many urgent ports */
+ unsigned maxports; /* How many allocated urgent ports */
+ u_short *port; /* The urgent ports */
+ } urgent;
+
struct fsm_retry fsm; /* How often/frequently to resend requests */
} cfg;
@@ -93,10 +99,11 @@ struct ipcp {
u_int32_t my_reject; /* Request codes I have rejected */
struct pppThroughput throughput; /* throughput statistics */
- struct mqueue Queue[PRI_FAST + 1]; /* Output packet queues */
+ struct mqueue Queue[3]; /* Output packet queues */
};
#define fsm2ipcp(fp) (fp->proto == PROTO_IPCP ? (struct ipcp *)fp : NULL)
+#define IPCP_QUEUES(ipcp) (sizeof ipcp->Queue / sizeof ipcp->Queue[0])
struct bundle;
struct link;
@@ -104,6 +111,7 @@ struct cmdargs;
extern void ipcp_Init(struct ipcp *, struct bundle *, struct link *,
const struct fsm_parent *);
+extern void ipcp_Destroy(struct ipcp *);
extern void ipcp_Setup(struct ipcp *, u_int32_t);
extern void ipcp_SetLink(struct ipcp *, struct link *);
@@ -116,4 +124,8 @@ extern int ipcp_UseHisaddr(struct bundle *, const char *, int);
extern int ipcp_vjset(struct cmdargs const *);
extern void ipcp_CleanInterface(struct ipcp *);
extern int ipcp_InterfaceUp(struct ipcp *);
+extern int ipcp_IsUrgentPort(struct ipcp *, u_short, u_short);
+extern void ipcp_AddUrgentPort(struct ipcp *, u_short);
+extern void ipcp_RemoveUrgentPort(struct ipcp *, u_short);
+extern void ipcp_ClearUrgentPorts(struct ipcp *);
extern struct in_addr addr2mask(struct in_addr);
OpenPOWER on IntegriCloud