Harald Welte | b668988 | 2012-01-16 16:00:45 +0100 | [diff] [blame] | 1 | % RFC 4165 MTP2 P2P Adaption Layer coding / decoding |
| 2 | |
| 3 | % (C) 2012 by Harald Welte <laforge@gnumonks.org> |
| 4 | % |
| 5 | % All Rights Reserved |
| 6 | % |
| 7 | % This program is free software; you can redistribute it and/or modify |
| 8 | % it under the terms of the GNU Affero General Public License as |
| 9 | % published by the Free Software Foundation; either version 3 of the |
| 10 | % License, or (at your option) any later version. |
| 11 | % |
| 12 | % This program is distributed in the hope that it will be useful, |
| 13 | % but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 15 | % GNU General Public License for more details. |
| 16 | % |
| 17 | % You should have received a copy of the GNU Affero General Public License |
| 18 | % along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 19 | |
| 20 | -define(M2PA_PPID, 5). |
Harald Welte | 263f184 | 2012-01-17 15:11:58 +0100 | [diff] [blame] | 21 | -define(M2PA_PORT, 3565). |
Harald Welte | b668988 | 2012-01-16 16:00:45 +0100 | [diff] [blame] | 22 | |
| 23 | % Section 2.1.3 |
| 24 | -define(M2PA_CLASS_M2PA, 11). |
| 25 | |
| 26 | % Section 2.1.4 |
| 27 | -define(M2PA_TYPE_USER, 1). |
| 28 | -define(M2PA_TYPE_LINK, 2). |
| 29 | |
| 30 | % Section 2.3.2 |
| 31 | -define(M2PA_LS_ALIGNMENT, 1). |
| 32 | -define(M2PA_LS_PROVING_NORMAL, 2). |
| 33 | -define(M2PA_LS_PROVING_EMERG, 3). |
| 34 | -define(M2PA_LS_READY, 4). |
| 35 | -define(M2PA_LS_PROC_OUTAGE, 5). |
| 36 | -define(M2PA_LS_PROC_RECOVERED, 6). |
| 37 | -define(M2PA_LS_BUSY, 7). |
| 38 | -define(M2PA_LS_BUSY_ENDED, 8). |
| 39 | -define(M2PA_LS_OOS, 9). |
| 40 | |
| 41 | % SCTP stream IDs |
| 42 | -define(M2PA_STREAM_STATUS, 0). |
| 43 | -define(M2PA_STREAM_USER, 1). |
| 44 | |
| 45 | -record(m2pa_msg, { |
| 46 | msg_class, |
| 47 | msg_type, |
| 48 | fwd_seq_nr, |
| 49 | back_seq_nr, |
| 50 | mtp3, |
| 51 | parameters |
| 52 | }). |