File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / mpd / src / pap.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Mon Jul 22 08:44:29 2013 UTC (11 years ago) by misho
Branches: mpd, MAIN
CVS tags: v5_9p16, v5_9, v5_8p7, v5_8p1_cross, v5_8p1, v5_8, v5_7p0, v5_7, v5_6, HEAD
5.7

    1: 
    2: /*
    3:  * pap.h
    4:  *
    5:  * Written by Toshiharu OHNO <tony-o@iij.ad.jp>
    6:  * Copyright (c) 1993, Internet Initiative Japan, Inc. All rights reserved.
    7:  * See ``COPYRIGHT.iij''
    8:  * 
    9:  * Rewritten by Archie Cobbs <archie@freebsd.org>
   10:  * Copyright (c) 1995-1999 Whistle Communications, Inc. All rights reserved.
   11:  * See ``COPYRIGHT.whistle''
   12:  */
   13: 
   14: #ifndef _PAP_H_
   15: #define	_PAP_H_
   16: 
   17: #include "mbuf.h"
   18: #include "timer.h"
   19: 
   20: /*
   21:  * DEFINITIONS
   22:  */
   23: 
   24:   #define PAP_REQUEST		1
   25:   #define PAP_ACK		2
   26:   #define PAP_NAK		3
   27: 
   28:   struct papinfo {
   29:     short		next_id;			/* Packet id */
   30:     short		retry;				/* Resend count */
   31:     struct pppTimer	timer;				/* Resend timer */
   32:   };
   33:   typedef struct papinfo	*PapInfo;
   34: 
   35:   struct papparams {
   36:     char		peer_pass[AUTH_MAX_PASSWORD];
   37:     char		peer_name[AUTH_MAX_AUTHNAME];    
   38:   };
   39:   typedef struct papparams	*PapParams;
   40: 
   41:   struct authdata;
   42:   
   43: /*
   44:  * FUNCTIONS
   45:  */
   46: 
   47:   extern void	PapStart(Link l, int which);
   48:   extern void	PapStop(PapInfo pap);
   49:   extern void	PapInput(Link l, struct authdata *auth, const u_char *pkt, u_short len);
   50:   extern void	PapInputFinish(Link l, struct authdata *auth);
   51:   extern const	char *PapCode(int code, char *buf, size_t len);
   52: 
   53: #endif
   54: 

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>