X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;ds=sidebyside;f=pppd%2Fplugins%2Fpppoe%2Fpppoe.h;h=60c4f5e7e4481c691de3aefcbd70fb04223cff52;hb=af622602ca55d368c03b0ea912479dc84ad543c0;hp=4e1972002ed80e17d5790c0f07c1d82bb2fb1d85;hpb=5b50b420fcd4708b6d5bdc55087c4c9fe06d215d;p=ppp.git diff --git a/pppd/plugins/pppoe/pppoe.h b/pppd/plugins/pppoe/pppoe.h index 4e19720..60c4f5e 100644 --- a/pppd/plugins/pppoe/pppoe.h +++ b/pppd/plugins/pppoe/pppoe.h @@ -233,7 +233,6 @@ typedef struct PPPoEConnectionStruct { char *acName; /* Desired AC name, if any */ int synchronous; /* Use synchronous PPP */ PPPoETag hostUniq; /* Use Host-Uniq tag */ - int printACNames; /* Just print AC names */ FILE *debugFile; /* Debug file for dumping packets */ int numPADOs; /* Number of PADO packets received */ PPPoETag cookie; /* We have to send this if we get it */ @@ -243,8 +242,10 @@ typedef struct PPPoEConnectionStruct { int discoveryTimeout; /* Timeout for discovery packets */ int discoveryAttempts; /* Number of discovery attempts */ int seenMaxPayload; - int mtu; /* Stored MTU */ - int mru; /* Stored MRU */ + int storedmtu; /* Stored MTU */ + int storedmru; /* Stored MRU */ + int mtu; + int mru; } PPPoEConnection; /* Structure used to determine acceptable PADO or PADS packet */ @@ -278,10 +279,12 @@ void initPPP(void); void clampMSS(PPPoEPacket *packet, char const *dir, int clampMss); UINT16_t computeTCPChecksum(unsigned char *ipHdr, unsigned char *tcpHdr); UINT16_t pppFCS16(UINT16_t fcs, unsigned char *cp, int len); -void discovery(PPPoEConnection *conn); +void discovery1(PPPoEConnection *conn); +void discovery2(PPPoEConnection *conn); unsigned char *findTag(PPPoEPacket *packet, UINT16_t tagType, PPPoETag *tag); +extern int pppoe_verbose; void pppoe_printpkt(PPPoEPacket *packet, void (*printer)(void *, char *, ...), void *arg); void pppoe_log_packet(const char *prefix, PPPoEPacket *packet);