]> git.ozlabs.org Git - ppp.git/blobdiff - pppd/plugins/rp-pppoe/pppoe.h
Various fixes for errors found by coverity static analysis (#109)
[ppp.git] / pppd / plugins / rp-pppoe / pppoe.h
index c4aaa6e68856e8506643a6c30c86177070af1fd7..8c4b8f783a83b692218b11c0c156570a22fb5c1f 100644 (file)
@@ -22,6 +22,8 @@
 #include <stdio.h>             /* For FILE */
 #include <sys/types.h>         /* For pid_t */
 
+#include "pppd/pppd.h"         /* For error */
+
 /* How do we access raw Ethernet devices? */
 #undef USE_LINUX_PACKET
 #undef USE_BPF
@@ -245,6 +247,7 @@ typedef struct PPPoEConnectionStruct {
     int error;                 /* Error packet received */
     int debug;                 /* Set to log packets sent and received */
     int discoveryTimeout;       /* Timeout for discovery packets */
+    int discoveryAttempts;      /* Number of discovery attempts */
     int seenMaxPayload;
     int mtu;                   /* Stored MTU */
     int mru;                   /* Stored MRU */