Ethereal-dev: [Ethereal-dev] query on get_column_format_from_str()

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: "Ankur Aggarwal" <ankur@xxxxxxxxxxxxxxxxx>
Date: Wed, 25 May 2005 19:25:52 +0530

Hi

I was looking at the 2 new columns described in version 11.

There was a  peculiar case in get_column_format_from_str() in epan/ column.c

 

      case 'H':

            return COL_HPUX_SUBSYS;

            break;

      case 'P':

            return COL_HPUX_DEVID;

            break;

 

Since I was trying to write a new column myself to do the protocol checker ( in order to save time going through each individual packet to find an anomaly, I was curious how were the cases decided and how to add a new column ( say.. COL_PACKET_RESPONSE_FLAG).

1) define in last but one of column_info.h

2) add its instances in column.c functions:

  get_column_longest_string

  get_column_format_matches

3) populate the coulumn by:

col_clear()

 col_add_fstr()

 

Is there anything else?

What about get_column_format_from_str()?

 

Thanks

Ankur