summaryrefslogtreecommitdiff
path: root/pppd/ccp.c
diff options
context:
space:
mode:
authorPaul Mackerras <paulus@samba.org>2004-11-13 02:28:15 +0000
committerPaul Mackerras <paulus@samba.org>2004-11-13 02:28:15 +0000
commitec27e67401c1e4031be2fa7f692d3d66d5bee586 (patch)
tree432ee3440f7b625b8ac6f0e3bbe5934cf6b303d5 /pppd/ccp.c
parentb98e5a6bed67f50cdfad054ea6576f59b9a0c482 (diff)
downloadppp-ec27e67401c1e4031be2fa7f692d3d66d5bee586.tar.gz
Add a 'treat as reject' parameter to the nakci functions.
Use it to make sure we don't keep requesting the same IP address over and over when it keeps getting nacked.
Diffstat (limited to 'pppd/ccp.c')
-rw-r--r--pppd/ccp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/pppd/ccp.c b/pppd/ccp.c
index 60eceb1..fd51952 100644
--- a/pppd/ccp.c
+++ b/pppd/ccp.c
@@ -28,7 +28,7 @@
* OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#define RCSID "$Id: ccp.c,v 1.47 2004/11/04 10:02:26 paulus Exp $"
+#define RCSID "$Id: ccp.c,v 1.48 2004/11/13 02:28:15 paulus Exp $"
#include <stdlib.h>
#include <string.h>
@@ -209,7 +209,7 @@ static void ccp_resetci __P((fsm *));
static int ccp_cilen __P((fsm *));
static void ccp_addci __P((fsm *, u_char *, int *));
static int ccp_ackci __P((fsm *, u_char *, int));
-static int ccp_nakci __P((fsm *, u_char *, int));
+static int ccp_nakci __P((fsm *, u_char *, int, int));
static int ccp_rejci __P((fsm *, u_char *, int));
static int ccp_reqci __P((fsm *, u_char *, int *, int));
static void ccp_up __P((fsm *));
@@ -894,7 +894,7 @@ ccp_ackci(f, p, len)
* Returns 1 iff the nak was OK.
*/
static int
-ccp_nakci(f, p, len)
+ccp_nakci(f, p, len, treat_as_reject)
fsm *f;
u_char *p;
int len;