X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=pppd%2Fpppd.h;h=e2cc42808ef3c045c894dcd6b1e0bbc023ed22f6;hb=c2134507ca4699d192d79337a8fd2e947803dad9;hp=a9b780a9e796d70575b76f8e1ed9960f079b7acf;hpb=b38527fb14af5ebe3d2559e2f861575c722a1ce9;p=ppp.git diff --git a/pppd/pppd.h b/pppd/pppd.h index a9b780a..e2cc428 100644 --- a/pppd/pppd.h +++ b/pppd/pppd.h @@ -16,7 +16,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id: pppd.h,v 1.67 2002/04/02 13:54:59 dfs Exp $ + * $Id: pppd.h,v 1.71 2002/07/16 13:11:43 kad Exp $ */ /* @@ -287,6 +287,22 @@ extern char *bundle_name; /* bundle name for multilink */ extern bool dump_options; /* print out option values */ extern bool dryrun; /* check everything, print options, exit */ +#ifdef MAXOCTETS +extern unsigned int maxoctets; /* Maximum octetes per session (in bytes) */ +extern int maxoctets_dir; /* Direction : + 0 - in+out (default) + 1 - in + 2 - out + 3 - max(in,out) */ +extern int maxoctets_timeout; /* Timeout for check of octets limit */ +#define PPP_OCTETS_DIRECTION_SUM 0 +#define PPP_OCTETS_DIRECTION_IN 1 +#define PPP_OCTETS_DIRECTION_OUT 2 +#define PPP_OCTETS_DIRECTION_MAXOVERAL 3 +/* same as previos, but little different on RADIUS side */ +#define PPP_OCTETS_DIRECTION_MAXSESSION 4 +#endif + #ifdef PPP_FILTER extern struct bpf_program pass_filter; /* Filter for pkts to pass */ extern struct bpf_program active_filter; /* Filter for link-active pkts */ @@ -306,6 +322,7 @@ extern bool ms_lanman; /* Use LanMan password instead of NT */ #define CHAP_MD5_WITHPEER 0x10 #define CHAP_MD5_PEER 0x20 #ifdef CHAPMS +#define CHAP_MS_SHIFT 6 /* LSB position for MS auths */ #define CHAP_MS_WITHPEER 0x40 #define CHAP_MS_PEER 0x80 #define CHAP_MS2_WITHPEER 0x100 @@ -478,7 +495,7 @@ void link_required __P((int)); /* we are starting to use the link */ void link_terminated __P((int)); /* we are finished with the link */ void link_down __P((int)); /* the LCP layer has left the Opened state */ void link_established __P((int)); /* the link is up; authenticate now */ -void start_networks __P((void)); /* start all the network control protos */ +void start_networks __P((int)); /* start all the network control protos */ void np_up __P((int, int)); /* a network protocol has come up */ void np_down __P((int, int)); /* a network protocol has gone down */ void np_finished __P((int, int)); /* a network protocol no longer needs link */ @@ -735,6 +752,9 @@ extern void (*snoop_send_hook) __P((unsigned char *p, int len)); #define EXIT_LOOPBACK 17 #define EXIT_INIT_FAILED 18 #define EXIT_AUTH_TOPEER_FAILED 19 +#ifdef MAXOCTETS +#define EXIT_TRAFFIC_LIMIT 20 +#endif /* * Debug macros. Slightly useful for finding bugs in pppd, not particularly