The packet-tpncp.c has dynamically allocated fields array and register
them one by one:
 
    /*
     * The function proto_register_field_array can not work with dynamic
arrays,
     * so passing dynamic array elements one-by-one in the loop.
     */
    for(index = 0; index < hf_size; index++) {
        proto_register_field_array(proto_tpncp, &hf[index], 1);
    }

 
Is it really necessary?
Why proto_register_field_array(proto_tpncp, hf, hf_size); can not be
used?
I have probably missed something.
 
Tomas
_______________________________________________
Wireshark-dev mailing list
Wireshark-dev@wireshark.org
http://www.wireshark.org/mailman/listinfo/wireshark-dev

Reply via email to