source: EcnlProtoTool/trunk/asp3_dcre/tinet/net/ppp_upap.h@ 270

Last change on this file since 270 was 270, checked in by coas-nagasima, 7 years ago

mruby版ECNLプロトタイピング・ツールを追加

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
  • Property svn:mime-type set to text/x-chdr
File size: 5.3 KB
Line 
1/*
2 * TINET (TCP/IP Protocol Stack)
3 *
4 * Copyright (C) 2001-2009 by Dep. of Computer Science and Engineering
5 * Tomakomai National College of Technology, JAPAN
6 *
7 * 上記著作権者
8は,以下の (1)~(4) の条件か,Free Software Foundation
9 * によってå…
10¬è¡¨ã•ã‚Œã¦ã„ã‚‹ GNU General Public License の Version 2 に記
11 * 述されている条件を満たす場合に限り,本ソフトウェア(本ソフトウェア
12 * を改変したものを含む.以下同じ)を使用・複製・改変・再é…
13å¸ƒï¼ˆä»¥ä¸‹ï¼Œ
14 * 利用と呼ぶ)することを無償で許諾する.
15 * (1) 本ソフトウェアをソースコードの形で利用する場合には,上記の著作
16 * 権表示,この利用条件および下記の無保証規定が,そのままの形でソー
17 * スコード中に含まれていること.
18 * (2) 本ソフトウェアを,ライブラリ形式など,他のソフトウェア開発に使
19 * 用できる形で再é…
20å¸ƒã™ã‚‹å ´åˆã«ã¯ï¼Œå†é…
21å¸ƒã«ä¼´ã†ãƒ‰ã‚­ãƒ¥ãƒ¡ãƒ³ãƒˆï¼ˆåˆ©ç”¨
22 * 者
23マニュアルなど)に,上記の著作権表示,この利用条件および下記
24 * の無保証規定を掲載すること.
25 * (3) 本ソフトウェアを,機器に組み込むなど,他のソフトウェア開発に使
26 * 用できない形で再é…
27å¸ƒã™ã‚‹å ´åˆã«ã¯ï¼Œæ¬¡ã®æ¡ä»¶ã‚’満たすこと.
28 * (a) 再é…
29å¸ƒã«ä¼´ã†ãƒ‰ã‚­ãƒ¥ãƒ¡ãƒ³ãƒˆï¼ˆåˆ©ç”¨è€…
30マニュアルなど)に,上記の著
31 * 作権表示,この利用条件および下記の無保証規定を掲載すること.
32 * (4) 本ソフトウェアの利用により直接的または間接的に生じるいかなる損
33 * 害からも,上記著作権者
34およびTOPPERSプロジェクトをå…
35è²¬ã™ã‚‹ã“と.
36 *
37 * 本ソフトウェアは,無保証で提供されているものである.上記著作権者
38お
39 * よびTOPPERSプロジェクトは,本ソフトウェアに関して,その適用可能性も
40 * 含めて,いかなる保証も行わない.また,本ソフトウェアの利用により直
41 * 接的または間接的に生じたいかなる損害に関しても,その責任を負わない.
42 *
43 * @(#) $Id: ppp_upap.h 270 2017-02-09 04:03:47Z coas-nagasima $
44 */
45
46/*
47 * upap.h - User/Password Authentication Protocol definitions.
48 *
49 * Copyright (c) 1989 Carnegie Mellon University.
50 * All rights reserved.
51 *
52 * Redistribution and use in source and binary forms are permitted
53 * provided that the above copyright notice and this paragraph are
54 * duplicated in all such forms and that any documentation,
55 * advertising materials, and other materials related to such
56 * distribution and use acknowledge that the software was developed
57 * by Carnegie Mellon University. The name of the
58 * University may not be used to endorse or promote products derived
59 * from this software without specific prior written permission.
60 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
61 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
62 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
63 *
64 * $FreeBSD: src/usr.sbin/pppd/upap.h,v 1.6.2.1 1999/08/29 15:47:10 peter Exp $
65 */
66
67/*
68 * Written by Toshiharu OHNO (tony-o@iij.ad.jp)
69 *
70 * Copyright (C) 1993, Internet Initiative Japan, Inc. All rights reserverd.
71 *
72 * Redistribution and use in source and binary forms are permitted
73 * provided that the above copyright notice and this paragraph are
74 * duplicated in all such forms and that any documentation,
75 * advertising materials, and other materials related to such
76 * distribution and use acknowledge that the software was developed
77 * by the Internet Initiative Japan. The name of the
78 * IIJ may not be used to endorse or promote products derived
79 * from this software without specific prior written permission.
80 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
81 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
82 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
83 *
84 * $FreeBSD: src/usr.sbin/ppp/pap.h,v 1.11 1999/08/28 01:18:37 peter Exp $
85 *
86 * TODO:
87 */
88
89#ifndef _PPP_UPAP_H_
90#define _PPP_UPAP_H_
91
92#ifdef SUPPORT_PPP
93
94/*
95 * PAP の制御コード
96 */
97
98#define PAP_AUTHREQ UINT_C(1) /* 認証要求 */
99#define PAP_AUTHACK UINT_C(2) /* 認証 ACK */
100#define PAP_AUTHNAK UINT_C(3) /* 認証 NAK */
101
102/*
103 * クライアントの状æ…
104‹
105 */
106
107#define PAP_CS_INIT UINT_C(0) /* 未接続 */
108#define PAP_CS_CLOSED UINT_C(1) /* 接続、未認証 */
109#define PAP_CS_PENDING UINT_C(2) /* 未接続、認証 */
110#define PAP_CS_AUTHREQ UINT_C(3) /* 認証要求送信済み */
111#define PAP_CS_OPEN UINT_C(4) /* ACK 受信 */
112#define PAP_CS_BADAUTH UINT_C(5) /* NAK 受信 */
113
114/*
115 * サーバの状æ…
116‹
117 */
118
119#define PAP_SS_INIT UINT_C(0) /* 未接続 */
120#define PAP_SS_CLOSED UINT_C(1) /* 接続、未認証 */
121#define PAP_SS_PENDING UINT_C(2) /* 未接続、認証 */
122#define PAP_SS_LISTEN UINT_C(3) /* 認証要求受信待
123ち */
124#define PAP_SS_OPEN UINT_C(4) /* ACK 送信 */
125#define PAP_SS_BADAUTH UINT_C(5) /* NAK 送信 */
126
127/*
128 * 変数
129 */
130
131extern T_PPP_PROTENT pap_protent;
132
133/*
134 * 関数
135 */
136
137extern void upap_auth_client (void);
138extern void upap_auth_server (void);
139
140#endif /* of #ifdef SUPPORT_PPP */
141
142#endif /* of #ifndef _PPP_UPAP_H_ */
Note: See TracBrowser for help on using the repository browser.