*
* $Id: ccp.h,v 1.12 2004/11/04 10:02:26 paulus Exp $
*/
+#ifndef PPP_CCP_H
+#define PPP_CCP_H
+
#include "pppdconf.h"
typedef struct ccp_options {
extern ccp_options ccp_hisoptions[];
extern struct protent ccp_protent;
+
+#endif
* AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
* OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
+
+#ifndef PPP_CHAP_MD5_H
+#define PPP_CHAP_MD5_H
+
#include "pppdconf.h"
extern void chap_md5_init(void);
+
+#endif
* OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
+#ifndef PPP_CHAP_NEW_H
+#define PPP_CHAP_NEW_H
+
#include "pppdconf.h"
/*
/* Represents the CHAP protocol to the main pppd code */
extern struct protent chap_protent;
+
+#endif
* $Id: chap_ms.h,v 1.13 2004/11/15 22:13:26 paulus Exp $
*/
-#include "pppdconf.h"
+#ifndef PPP_CHAPMS_H
+#define PPP_CHAPMS_H
-#ifndef __CHAPMS_INCLUDE__
+#include "pppdconf.h"
#define MD4_SIGNATURE_SIZE 16 /* 16 bytes in a MD4 message digest */
#define MAX_NT_PASSWORD 256 /* Max (Unicode) chars in an NT pass */
void chapms_init(void);
-#define __CHAPMS_INCLUDE__
-#endif /* __CHAPMS_INCLUDE__ */
+#endif /* PPP_CHAPMS_H */
*
*/
-#include "pppdconf.h"
-
-#ifndef __EAP_TLS_H__
-#define __EAP_TLS_H__
+#ifndef PPP_EAP_TLS_H
+#define PPP_EAP_TLS_H
+#include "pppdconf.h"
#include "eap.h"
#include <openssl/ssl.h>
* $Id: eap.h,v 1.2 2003/06/11 23:56:26 paulus Exp $
*/
-#include "pppdconf.h"
-
#ifndef PPP_EAP_H
#define PPP_EAP_H
+#include "pppdconf.h"
+
#ifdef __cplusplus
extern "C" {
#endif
*
* $Id: ecp.h,v 1.2 2003/01/10 07:12:36 fcusack Exp $
*/
-#include "pppdconf.h"
-
#ifndef PPP_ECP_H
#define PPP_ECP_H
+#include "pppdconf.h"
+
#ifndef PPP_ECP
#define PPP_ECP 0x8053
#endif
* OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
*/
+#ifndef PPP_EUI64_H
+#define PPP_EUI64_H
#include "pppdconf.h"
-#ifndef __EUI64_H__
-#define __EUI64_H__
-
#if !defined(PPP_WITH_IPV6CP)
#error "this file should only be included when PPP_WITH_IPV6CP is defined"
#endif /* not defined(PPP_WITH_IPV6CP) */
-#if defined(SOL2)
-#include <netinet/in.h>
-
-typedef union {
- uint8_t e8[8]; /* lower 64-bit IPv6 address */
- uint32_t e32[2]; /* lower 64-bit IPv6 address */
-} eui64_t;
-
-/*
- * Declare the two below, since in.h only defines them when _KERNEL
- * is declared - which shouldn't be true when dealing with user-land programs
- */
-#define s6_addr8 _S6_un._S6_u8
-#define s6_addr32 _S6_un._S6_u32
-
-#else /* else if not defined(SOL2) */
-
-/*
- * TODO:
- *
- * Maybe this should be done by processing struct in6_addr directly...
- */
-typedef union
-{
- u_int8_t e8[8];
- u_int16_t e16[4];
- u_int32_t e32[2];
-} eui64_t;
-
-#endif /* defined(SOL2) */
-
#define eui64_iszero(e) (((e).e32[0] | (e).e32[1]) == 0)
#define eui64_equals(e, o) (((e).e32[0] == (o).e32[0]) && \
((e).e32[1] == (o).e32[1]))
char *eui64_ntoa(eui64_t); /* Returns ascii representation of id */
-#endif /* __EUI64_H__ */
-
+#endif /* PPP_EUI64_H */
*
* $Id: fsm.h,v 1.10 2004/11/13 02:28:15 paulus Exp $
*/
+#ifndef PPP_FSM_H
+#define PPP_FSM_H
#include "pppdconf.h"
* Variables
*/
extern int peer_mru[]; /* currently negotiated peer MRU (per unit) */
+
+#endif
* AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
* OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
+#ifndef PPP_IPCP_H
+#define PPP_IPCP_H
+
#include "pppdconf.h"
/*
char *ip_ntoa(u_int32_t);
extern struct protent ipcp_protent;
+
+#endif /* PPP_IPCP_H */
#include "pppd.h"
#include "fsm.h"
+#include "eui64.h"
#include "ipcp.h"
#include "ipv6cp.h"
#include "magic.h"
* OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
*/
+
+#ifndef PPP_IPV6CP_H
+#define PPP_IPV6CP_H
+
#include "pppdconf.h"
/* Original version, based on RFC2023 :
extern ipv6cp_options ipv6cp_hisoptions[];
extern struct protent ipv6cp_protent;
+
+#endif
* AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
* OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
+#ifndef PPP_LCP_H
+#define PPP_LCP_H
+
#include "pppdconf.h"
/*
/* Default number of times we receive our magic number from the peer
before deciding the link is looped-back. */
#define DEFLOOPBACKFAIL 10
+
+#endif
* AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
* OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
+#ifndef PPP_MAGIC_H
+#define PPP_MAGIC_H
+
#include "pppdconf.h"
void magic_init (void); /* Initialize the magic number generator */
/* Fill buffer with random bytes */
void random_bytes (unsigned char *buf, int len);
+
+#endif
** (C) 1990 RSA Data Security, Inc. **
** ********************************************************************
*/
+#ifndef PPP_MD4_H
+#define PPP_MD4_H
+
#include "pppdconf.h"
-#ifndef __MD4_INCLUDE__
-#define __MD4_INCLUDE__
#ifndef USE_MD4
#include <openssl/md4.h>
#define MD4Init MD4_Init
** End of md4.h
****************************(cut)***********************************/
#endif /* USE_MD4 */
-#endif /* __MD4_INCLUDE__ */
+#endif /* PPP_MD4_H */
** documentation and/or software. **
***********************************************************************
*/
+#ifndef PPP_MD5_H
+#define PPP_MD5_H
+
#include "pppdconf.h"
-#ifndef __MD5_INCLUDE__
-#define __MD5_INCLUDE__
#ifndef USE_MD5
#include <openssl/md5.h>
#else
void MD5_Final (unsigned char hash[], MD5_CTX *mdContext);
#endif /* USE_MD5 */
-#endif /* __MD5_INCLUDE__ */
+#endif /* PPP_MD5_H */
* AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
* OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include "pppdconf.h"
+#ifndef PPP_MPPE_H
+#define PPP_MPPE_H
-#ifndef __MPPE_H__
-#define __MPPE_H__
+#include "pppdconf.h"
#define MPPE_PAD 4 /* MPPE growth per frame */
#define MPPE_MAX_KEY_SIZE 32 /* Largest key length */
u_char NTResponse[MS_AUTH_NTRESP_LEN], int IsServer);
#endif // #ifdef PPP_WITH_MPPE
-#endif // #ifdef __MPPE_H__
+#endif // #ifdef PPP_MPPE_H
/*
* define path names
*/
+#ifndef PPP_PATHNAMES_H
+#define PPP_PATHNAMES_H
+
#include "pppdconf.h"
#ifdef HAVE_PATHS_H
#define _PATH_PPPDB _PPP_VARRUN "pppd2.tdb"
#endif /* __STDC__ */
+#endif /* PPP_PATHNAMES_H */
#ifndef PPP_PEAP_H
#define PPP_PEAP_H
+#include "pppdconf.h"
+
#define PEAP_PHASE_1 1
#define PEAP_PHASE_2 2
* AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
* OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include "pppdconf.h"
+#ifndef PPP_PPPCRYPT_H
+#define PPP_PPPCRYPT_H
-#ifndef PPPCRYPT_H
-#define PPPCRYPT_H
+#include "pppdconf.h"
#ifdef HAVE_CRYPT_H
#include <crypt.h>
extern bool DesEncrypt(u_char *, u_char *);
extern bool DesDecrypt(u_char *, u_char *);
-#endif /* PPPCRYPT_H */
+#endif /* PPP_PPPCRYPT_H */
* $Id: pppd.h,v 1.96 2008/06/23 11:47:18 paulus Exp $
*/
-#include "pppdconf.h"
-
-/*
- * TODO:
- */
+#ifndef PPP_PPPD_H
+#define PPP_PPPD_H
-#ifndef __PPPD_H__
-#define __PPPD_H__
+#include "pppdconf.h"
#include <stdio.h> /* for FILE */
#include <stdlib.h> /* for encrypt */
#include <net/ppp_defs.h>
#ifdef PPP_WITH_IPV6CP
-#include "eui64.h"
+#if defined(SOL2)
+#include <netinet/in.h>
+
+typedef union {
+ uint8_t e8[8]; /* lower 64-bit IPv6 address */
+ uint32_t e32[2]; /* lower 64-bit IPv6 address */
+} eui64_t;
+
+/*
+ * Declare the two below, since in.h only defines them when _KERNEL
+ * is declared - which shouldn't be true when dealing with user-land programs
+ */
+#define s6_addr8 _S6_un._S6_u8
+#define s6_addr32 _S6_un._S6_u32
+
+#else /* else if not defined(SOL2) */
+
+/*
+ * TODO:
+ *
+ * Maybe this should be done by processing struct in6_addr directly...
+ */
+typedef union
+{
+ u_int8_t e8[8];
+ u_int16_t e16[4];
+ u_int32_t e32[2];
+} eui64_t;
+
+#endif /* defined(SOL2) */
#endif
/*
#define offsetof(type, member) ((size_t) &((type *)0)->member)
#endif
-#endif /* __PPP_H__ */
+#endif /* PPP_PPPD_H */
* in pppd when configured.
*/
+#ifndef PPP_PPPDCONF_H
+#define PPP_PPPDCONF_H
+
/* Have Microsoft CHAP support */
#undef PPP_WITH_CHAPMS
/* The pppd version */
#undef PPPD_VERSION
+
+#endif
* AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
* OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include "pppdconf.h"
+#ifndef PPP_SESSION_H
+#define PPP_SESSION_H
-#ifndef __SESSION_H
-#define __SESSION_H
+#include "pppdconf.h"
#define SESS_AUTH 1 /* Check User Authentication */
#define SESS_ACCT 2 /* Check Account Validity */
void
session_end(const char* tty);
-#endif
+#endif // PPP_SESSION_H
/* sha1.h */
-#include "pppdconf.h"
+#ifndef PPP_SHA1_H
+#define PPP_SHA1_H
-#ifndef __SHA1_INCLUDE_
-#define __SHA1_INCLUDE_
+#include "pppdconf.h"
#ifndef USE_SHA
#include <openssl/sha.h>
extern void SHA1_Final(unsigned char[SHA1_SIGNATURE_SIZE], SHA1_CTX *);
#endif /* USE_SHA */
-#endif /* __SHA1_INCLUDE_ */
+#endif /* PPP_SHA1_H */
-#include "pppdconf.h"
+#ifndef PPP_SPINLOCK_H
+#define PPP_SPINLOCK_H
-#ifndef __SPINLOCK_H__
-#define __SPINLOCK_H__
+#include "pppdconf.h"
#include "tdb.h"
#endif
-#endif
+#endif // PPP_SPINLOCK_H
#include "pppd.h"
#include "fsm.h"
#include "ipcp.h"
+#include "eui64.h"
#ifdef PPP_WITH_FILTER
#include <pcap-bpf.h>
-#include "pppdconf.h"
+#ifndef PPP_TDB_H
+#define PPP_TDB_H
-#ifndef __TDB_H__
-#define __TDB_H__
+#include "pppdconf.h"
/*
Unix SMB/CIFS implementation.
}
#endif
-#endif /* tdb.h */
+#endif /* PPP_TBD_H */
* Copyright (c) 2021 Marek Behún <kabel@kernel.org>
*/
-#ifndef _TERMIOS_LINUX_H_
-#define _TERMIOS_LINUX_H_
+#ifndef PPP_TERMIOS_LINUX_H
+#define PPP_TERMIOS_LINUX_H
+
+#include "pppdconf.h"
/*
* We need to use raw TCGETS2/TCSETS2 or TCGETS/TCSETS ioctls with the BOTHER
t->c_cflag |= CS8;
}
-#endif /* _TERMIOS_LINUX_H_ */
+#endif /* PPP_TERMIOS_LINUX_H */
* OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#ifndef TLS_H
-#define TLS_H
+#ifndef PPP_TLS_H
+#define PPP_TLS_H
+
+#include "pppdconf.h"
/**
* Structure used in verifying the peer certificate
*/
void tls_log_sslerr( void );
-#endif /* TLS_H */
+#endif /* PPP_TLS_H */
* AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
* OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
+#ifndef PPP_UPAP_H
+#define PPP_UPAP_H
+
+#include "pppdconf.h"
/*
* Packet header = Code, id, length.
void upap_authpeer(int);
extern struct protent pap_protent;
+
+#endif // PPP_UPAP_H