summaryrefslogtreecommitdiff
path: root/src/lib/irmd_messages.proto
blob: 5c320a179f545c64a90538f1f411747df22ef997 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
/*
 * Ouroboros - Copyright (C) 2016
 *
 * IRM messages
 *
 *    Sander Vrijders <sander.vrijders@intec.ugent.be>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */

import "dif_config.proto";

enum irm_msg_code {
        IRM_CREATE_IPCP       =  1;
        IPCP_CREATE_R         =  2;
        IRM_DESTROY_IPCP      =  3;
        IRM_LIST_IPCPS        =  4;
        IRM_BOOTSTRAP_IPCP    =  5;
        IRM_ENROLL_IPCP       =  6;
        IRM_BIND              =  7;
        IRM_UNBIND            =  8;
        IRM_API_BIND          =  9;
        IRM_REG               = 10;
        IRM_UNREG             = 11;
        IRM_FLOW_ACCEPT       = 12;
        IRM_FLOW_ALLOC_RESP   = 13;
        IRM_FLOW_ALLOC        = 14;
        IRM_FLOW_ALLOC_RES    = 15;
        IRM_FLOW_DEALLOC      = 16;
        IPCP_FLOW_REQ_ARR     = 17;
        IPCP_FLOW_ALLOC_REPLY = 18;
        IPCP_FLOW_DEALLOC     = 19;
        IRM_REPLY             = 20;
};

message irm_msg {
        required irm_msg_code code   =  1;
        optional string ap_name      =  2;
        optional string ap_subset    =  3;
        optional string ae_name      =  4;
        optional sint32 api          =  5;
        optional uint32 ipcp_type    =  6;
        repeated string dif_name     =  7;
        repeated string args         =  8;
        optional sint32 response     =  9;
        optional string dst_name     = 10;
        optional sint32 port_id      = 11;
        optional dif_config_msg conf = 12;
        optional uint32 opts         = 13;
        repeated sint32 apis         = 14;
        optional sint32 result       = 15;
};