1 | /*
|
---|
2 | * TINET (TCP/IP Protocol Stack)
|
---|
3 | *
|
---|
4 | * Copyright (C) 2001-2017 by Dep. of Computer Science and Engineering
|
---|
5 | * Tomakomai National College of Technology, JAPAN
|
---|
6 | *
|
---|
7 | * 上記著作権者は,以下の (1)~(4) の条件か,Free Software Foundation
|
---|
8 | * によって公表されている GNU General Public License の Version 2 に記
|
---|
9 | * 述されている条件を満たす場合に限り,本ソフトウェア(本ソフトウェア
|
---|
10 | * を改変したものを含む.以下同じ)を使用・複製・改変・再配布(以下,
|
---|
11 | * 利用と呼ぶ)することを無償で許諾する.
|
---|
12 | * (1) 本ソフトウェアをソースコードの形で利用する場合には,上記の著作
|
---|
13 | * 権表示,この利用条件および下記の無保証規定が,そのままの形でソー
|
---|
14 | * スコード中に含まれていること.
|
---|
15 | * (2) 本ソフトウェアを,ライブラリ形式など,他のソフトウェア開発に使
|
---|
16 | * 用できる形で再配布する場合には,再配布に伴うドキュメント(利用
|
---|
17 | * 者マニュアルなど)に,上記の著作権表示,この利用条件および下記
|
---|
18 | * の無保証規定を掲載すること.
|
---|
19 | * (3) 本ソフトウェアを,機器に組み込むなど,他のソフトウェア開発に使
|
---|
20 | * 用できない形で再配布する場合には,次の条件を満たすこと.
|
---|
21 | * (a) 再配布に伴うドキュメント(利用者マニュアルなど)に,上記の著
|
---|
22 | * 作権表示,この利用条件および下記の無保証規定を掲載すること.
|
---|
23 | * (4) 本ソフトウェアの利用により直接的または間接的に生じるいかなる損
|
---|
24 | * 害からも,上記著作権者およびTOPPERSプロジェクトを免責すること.
|
---|
25 | *
|
---|
26 | * 本ソフトウェアは,無保証で提供されているものである.上記著作権者お
|
---|
27 | * よびTOPPERSプロジェクトは,本ソフトウェアに関して,その適用可能性も
|
---|
28 | * 含めて,いかなる保証も行わない.また,本ソフトウェアの利用により直
|
---|
29 | * 接的または間接的に生じたいかなる損害に関しても,その責任を負わない.
|
---|
30 | *
|
---|
31 | * @(#) $Id: ppp_var.h 315 2017-07-23 05:29:40Z coas-nagasima $
|
---|
32 | */
|
---|
33 |
|
---|
34 | /*
|
---|
35 | * Copyright (c) 1989 Carnegie Mellon University.
|
---|
36 | * All rights reserved.
|
---|
37 | *
|
---|
38 | * Redistribution and use in source and binary forms are permitted
|
---|
39 | * provided that the above copyright notice and this paragraph are
|
---|
40 | * duplicated in all such forms and that any documentation,
|
---|
41 | * advertising materials, and other materials related to such
|
---|
42 | * distribution and use acknowledge that the software was developed
|
---|
43 | * by Carnegie Mellon University. The name of the
|
---|
44 | * University may not be used to endorse or promote products derived
|
---|
45 | * from this software without specific prior written permission.
|
---|
46 | * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
|
---|
47 | * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
|
---|
48 | * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
---|
49 | */
|
---|
50 |
|
---|
51 | /*
|
---|
52 | * Written by Toshiharu OHNO (tony-o@iij.ad.jp)
|
---|
53 | *
|
---|
54 | * Copyright (C) 1993, Internet Initiative Japan, Inc. All rights reserverd.
|
---|
55 | *
|
---|
56 | * Redistribution and use in source and binary forms are permitted
|
---|
57 | * provided that the above copyright notice and this paragraph are
|
---|
58 | * duplicated in all such forms and that any documentation,
|
---|
59 | * advertising materials, and other materials related to such
|
---|
60 | * distribution and use acknowledge that the software was developed
|
---|
61 | * by the Internet Initiative Japan. The name of the
|
---|
62 | * IIJ may not be used to endorse or promote products derived
|
---|
63 | * from this software without specific prior written permission.
|
---|
64 | * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
|
---|
65 | * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
|
---|
66 | * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
---|
67 | */
|
---|
68 |
|
---|
69 | #ifndef PPP_VAR_H_
|
---|
70 | #define PPP_VAR_H_
|
---|
71 |
|
---|
72 | #ifdef SUPPORT_PPP
|
---|
73 |
|
---|
74 | /*
|
---|
75 | * PPP プロトコルエントリ構造体
|
---|
76 | */
|
---|
77 |
|
---|
78 | typedef struct t_ppp_protent {
|
---|
79 | uint16_t proto; /* プロトコル番号 */
|
---|
80 | void (*init) (void); /* 初期化関数 */
|
---|
81 | void (*input) (T_NET_BUF *data);
|
---|
82 | /* 入力関数 */
|
---|
83 | void (*protrej) (void); /* Ptoto-REJ 受信処理 */
|
---|
84 | void (*lowerup) (void); /* 下位層を起動する。 */
|
---|
85 | void (*lowerdown) (void); /* 下位層を停止する。 */
|
---|
86 | void (*open) (void); /* オープンする。 */
|
---|
87 | void (*close) (void); /* クローズする。 */
|
---|
88 | void (*datainput) (T_NET_BUF *data);
|
---|
89 | /* データ入力関数 */
|
---|
90 | } T_PPP_PROTENT;
|
---|
91 |
|
---|
92 | #define T_PPP_PROTENT_DEFINED
|
---|
93 |
|
---|
94 | /*
|
---|
95 | * 変数
|
---|
96 | */
|
---|
97 |
|
---|
98 | extern T_PPP_PROTENT *protocols[]; /* プロトコル表 */
|
---|
99 | extern uint8_t ppp_phase; /* リンクの状態 */
|
---|
100 |
|
---|
101 | /*
|
---|
102 | * 関数
|
---|
103 | */
|
---|
104 |
|
---|
105 | extern void ppp_cp_output(uint8_t code, uint8_t id, T_NET_BUF *data);
|
---|
106 |
|
---|
107 | /*
|
---|
108 | * PPP 処理タスク
|
---|
109 | */
|
---|
110 |
|
---|
111 | extern void ppp_input_task(intptr_t exinf);
|
---|
112 | extern void ppp_output_task(intptr_t exinf);
|
---|
113 |
|
---|
114 | #endif /* of #ifdef SUPPORT_PPP */
|
---|
115 |
|
---|
116 | #endif /* of #ifndef PPP_VAR_H_ */
|
---|