代码拉取完成,页面将自动刷新
同步操作将从 songyuanbing/third_party_xl2tpd_0619 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
/*
* Layer Two Tunnelling Protocol Daemon
* Copyright (C) 1998 Adtran, Inc.
* Copyright (C) 2002 Jeff McAdams
*
* Mark Spencer
*
* This software is distributed under the terms
* of the GPL, which you should have received
* along with this source.
*
* Authorization, Accounting, and Access control
*
*/
#ifndef _AAA_H
#define _AAA_H
#include "md5.h"
#define ADDR_HASH_SIZE 256
#define MD_SIG_SIZE 16
#define MAX_VECTOR_SIZE 1024
#define VECTOR_SIZE 16
#define STATE_NONE 0
#define STATE_CHALLENGED 1
#define STATE_COMPLETE 2
struct addr_ent
{
unsigned int addr;
struct addr_ent *next;
};
struct challenge
{
struct MD5Context md5;
unsigned char ss; /* State we're sending in */
unsigned char secret[MAXSTRLEN]; /* The shared secret */
unsigned char *challenge; /* The original challenge */
unsigned int chal_len; /* The length of the original challenge */
unsigned char response[MD_SIG_SIZE]; /* What we expect as a respsonse */
unsigned char reply[MD_SIG_SIZE]; /* What the peer sent */
unsigned char *vector;
unsigned int vector_len;
int state; /* What state is challenge in? */
};
extern struct lns *get_lns (struct tunnel *);
extern unsigned int get_addr (struct iprange *);
extern void reserve_addr (unsigned int);
extern void unreserve_addr (unsigned int);
extern void init_addr ();
extern int handle_challenge (struct tunnel *, struct challenge *);
extern void mk_challenge (unsigned char *, int);
#endif
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。