Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Can I fill automaticly a value_string array?

Hey Guys, I want to write a dissector for eCPRI. In this protocol you find some byte-fields, which are reserved. Is there a opertunity to fill a value_string array?

static const value_string reset_coding[] = {
    { 0x00, "Reserved" },
    { 0x01, "Remote reset request" },
    { 0x02, "Remote reset response" },
    { 0x03, "Remote Request" },
    { 0x04, "Remote request with Follow_Up" },
    { 0x05, "Follow_Up" },
    { 0x06, "Reserved" },
    { 0x07, "Reserved" },
    { 0x08, "Reserved" },
    { 0x09, "Reserved" },
    { 0x0A, "Reserved" },
    { 0x0B, "Reserved" },
    { 0x0C, "Reserved" },
    { 0x0D, "Reserved" },
    { 0x0E, "Reserved" },
    { 0x0F, "Reserved" }, // to 0xFF
    //...
    { 0xFF, "Reserved" },
    { 0, NULL}

};

Thanks a lot!

Can I fill automaticly a value_string array?

Hey Guys, I want to write a dissector for eCPRI. In this protocol you find some byte-fields, which are reserved. Is there a opertunity to fill a value_string array?

static const value_string reset_coding[] = {
    { 0x00, "Reserved" },
    { 0x01, "Remote reset request" },
    { 0x02, "Remote reset response" },
    { 0x03, "Remote Request" },
    { 0x04, "Remote request with Follow_Up" },
    { 0x05, "Follow_Up" },
    { 0x06, "Reserved" },
    { 0x07, "Reserved" },
    { 0x08, "Reserved" },
    { 0x09, "Reserved" },
    { 0x0A, "Reserved" },
    { 0x0B, "Reserved" },
    { 0x0C, "Reserved" },
    { 0x0D, "Reserved" },
    { 0x0E, "Reserved" },
    { 0x0F, "Reserved" }, // to 0xFF
    //...
    { 0xFF, "Reserved" },
    { 0, NULL}

};

Thanks a lot!

Can I automatically fill automaticly a value_string array?

Hey Guys, I want to write a dissector for eCPRI. In this protocol you find some byte-fields, which are reserved. Is there a opertunity it possible to fill a value_string array?

static const value_string reset_coding[] = {
    { 0x00, "Reserved" },
    { 0x01, "Remote reset request" },
    { 0x02, "Remote reset response" },
    { 0x03, "Remote Request" },
    { 0x04, "Remote request with Follow_Up" },
    { 0x05, "Follow_Up" },
    { 0x06, "Reserved" },
    { 0x07, "Reserved" },
    { 0x08, "Reserved" },
    { 0x09, "Reserved" },
    { 0x0A, "Reserved" },
    { 0x0B, "Reserved" },
    { 0x0C, "Reserved" },
    { 0x0D, "Reserved" },
    { 0x0E, "Reserved" },
    { 0x0F, "Reserved" }, // to 0xFF
    //...
    { 0xFF, "Reserved" },
    { 0, NULL}

};

Thanks a lot!