import "dif_config.proto";

enum ipcp_msg_code {
        IPCP_BOOTSTRAP       =  1;
        IPCP_ENROLL          =  2;
        IPCP_REG             =  3;
        IPCP_UNREG           =  4;
        IPCP_NAME_REG        =  5;
        IPCP_NAME_UNREG      =  6;
        IPCP_FLOW_ALLOC      =  7;
        IPCP_FLOW_ALLOC_RESP =  8;
        IPCP_FLOW_DEALLOC    =  9;
        IPCP_REPLY           = 10;
};

message ipcp_msg {
        required ipcp_msg_code code  =  1;
        optional string member_name  =  2;
        optional string n_1_dif      =  3;
        repeated string dif_names    =  4;
        optional int32  len          =  5;
        optional string name         =  6;
        optional sint32 port_id      =  7;
        optional string dst_name     =  8;
        optional string src_ap_name  =  9;
        optional string src_ae_name  = 10;
        optional sint32 qos_cube     = 11;
        optional dif_config_msg conf = 12;
        optional sint32 fd           = 13;
        optional sint32 pid          = 14;
        optional sint32 response     = 15;
        optional sint32 result       = 16;
};