I encounter a problem with val_to_str function while doing my plugin. I'm
surrently using ethereal-0.9.11 on RedHat Linux 7.3.
The following is part of my code of protocol dis in packet-dis.c

#define ENTITY_STATE_PDU                1
#define FIRE_PDU                        2
#define DETONATION_PDU  3
#define START_RESUME_PDU      13
#define STOP_FREEZE_PDU                 14
#define ACKNOWLEDGE_PDU       15
#define SET_DATA_PDU            19
#define DATA_PDU                20

        const value_string pdu[] = {
                                {ENTITY_STATE_PDU,     
        "ENTITY_STATE_PDU"},
                                {FIRE_PDU,                      "FIRE_PDU"},
                                {DETONATION_PDU,                "DETONATION_PDU"},
                                {START_RESUME_PDU,     
        "START_RESUME_PDU"},
                                {STOP_FREEZE_PDU,               "STOP_FREEZE_PDU"},
                                {ACKNOWLEDGE_PDU,               "ACKNOWLEDGE_PDU"},
                };

        static const value_string vs_Entity_Kind[] = {
                                {1,   "Platform"},
                                {2,   "Munition"},
                                {4,   "Environment"},
                                {9,   "Sensor/Emitter"},
                        };

Reply via email to