summaryrefslogtreecommitdiff
path: root/pppd/fsm.h
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/fsm.h
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/fsm.h')
-rw-r--r--pppd/fsm.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/pppd/fsm.h b/pppd/fsm.h
index 2627fbf..87a78d3 100644
--- a/pppd/fsm.h
+++ b/pppd/fsm.h
@@ -39,7 +39,7 @@
* AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
* OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $Id: fsm.h,v 1.9 2002/12/04 23:03:32 paulus Exp $
+ * $Id: fsm.h,v 1.10 2004/11/13 02:28:15 paulus Exp $
*/
/*
@@ -76,6 +76,7 @@ typedef struct fsm {
int retransmits; /* Number of retransmissions left */
int maxtermtransmits; /* Maximum Terminate-Request transmissions */
int nakloops; /* Number of nak loops since last ack */
+ int rnakloops; /* Number of naks received */
int maxnakloops; /* Maximum number of nak loops tolerated */
struct fsm_callbacks *callbacks; /* Callback routines */
char *term_reason; /* Reason for closing protocol */
@@ -93,7 +94,7 @@ typedef struct fsm_callbacks {
int (*ackci) /* ACK our Configuration Information */
__P((fsm *, u_char *, int));
int (*nakci) /* NAK our Configuration Information */
- __P((fsm *, u_char *, int));
+ __P((fsm *, u_char *, int, int));
int (*rejci) /* Reject our Configuration Information */
__P((fsm *, u_char *, int));
int (*reqci) /* Request peer's Configuration Information */