diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2011-04-30 18:49:39 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2011-04-30 18:49:39 +0000 |
commit | 7244cb7d82033edf59cdede5228789c4e4e9f7a6 (patch) | |
tree | 9e8ef16c799a6a2b5b0e7b3bf599312f5630a33b /usr.sbin/pppd/demand.c | |
parent | 74b2bd957ca9cf3c93a789112e9a6acd16dad7d5 (diff) |
Remove some unused code, from Michael W Bombardieri. ok yasuoka
Diffstat (limited to 'usr.sbin/pppd/demand.c')
-rw-r--r-- | usr.sbin/pppd/demand.c | 46 |
1 files changed, 1 insertions, 45 deletions
diff --git a/usr.sbin/pppd/demand.c b/usr.sbin/pppd/demand.c index 7f951fbae49..fda74ca5faa 100644 --- a/usr.sbin/pppd/demand.c +++ b/usr.sbin/pppd/demand.c @@ -1,4 +1,4 @@ -/* $OpenBSD: demand.c,v 1.9 2009/10/27 23:59:53 deraadt Exp $ */ +/* $OpenBSD: demand.c,v 1.10 2011/04/30 18:49:38 nicm Exp $ */ /* * demand.c - Support routines for demand-dialling. @@ -116,50 +116,6 @@ demand_conf() die(1); } - -/* - * demand_block - set each network protocol to block further packets. - */ -void -demand_block() -{ - int i; - struct protent *protp; - - for (i = 0; (protp = protocols[i]) != NULL; ++i) - if (protp->enabled_flag && protp->demand_conf != NULL) - sifnpmode(0, protp->protocol & ~0x8000, NPMODE_QUEUE); - get_loop_output(); -} - -/* - * demand_discard - set each network protocol to discard packets - * with an error. - */ -void -demand_discard() -{ - struct packet *pkt, *nextpkt; - int i; - struct protent *protp; - - for (i = 0; (protp = protocols[i]) != NULL; ++i) - if (protp->enabled_flag && protp->demand_conf != NULL) - sifnpmode(0, protp->protocol & ~0x8000, NPMODE_ERROR); - get_loop_output(); - - /* discard all saved packets */ - for (pkt = pend_q; pkt != NULL; pkt = nextpkt) { - nextpkt = pkt->next; - free(pkt); - } - pend_q = NULL; - framelen = 0; - flush_flag = 0; - escape_flag = 0; - fcs = PPP_INITFCS; -} - /* * demand_drop - set each network protocol to discard packets * without an error. |