Annotation of embedaddon/mpd/src/pap.h, revision 1.1
1.1 ! misho 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>