we have to do it by writing the packets out in Wiretap. */
wtapng_section_t *shb_hdr = NULL;
- wtapng_iface_dsecriptions_t *idb_inf = NULL;
+ wtapng_iface_descriptions_t *idb_inf = NULL;
shb_hdr = wtap_file_get_shb_info(cf->wth);
idb_inf = wtap_file_get_idb_info(cf->wth);
}
wtap_dumper* wtap_dump_open_ng(const char *filename, int filetype, int encap,
- int snaplen, gboolean compressed, wtapng_section_t *shb_hdr, wtapng_iface_dsecriptions_t *idb_inf, int *err)
+ int snaplen, gboolean compressed, wtapng_section_t *shb_hdr, wtapng_iface_descriptions_t *idb_inf, int *err)
{
wtap_dumper *wdh;
WFILE_T fh;
return shb_hdr;
}
-wtapng_iface_dsecriptions_t* wtap_file_get_idb_info(wtap *wth)
+wtapng_iface_descriptions_t* wtap_file_get_idb_info(wtap *wth)
{
- wtapng_iface_dsecriptions_t *idb_info;
+ wtapng_iface_descriptions_t *idb_info;
- idb_info = g_new(wtapng_iface_dsecriptions_t,1);
+ idb_info = g_new(wtapng_iface_descriptions_t,1);
idb_info->number_of_interfaces = wth->number_of_interfaces;
idb_info->interface_data = wth->interface_data;
* the interface_data array holds an array of wtapng_if_descr_t
* one per interface.
*/
-typedef struct wtapng_iface_dsecriptions_s {
+typedef struct wtapng_iface_descriptions_s {
guint number_of_interfaces;
GArray *interface_data;
-} wtapng_iface_dsecriptions_t;
+} wtapng_iface_descriptions_t;
/* Interface Description
*
int wtap_file_encap(wtap *wth);
int wtap_file_tsprecision(wtap *wth);
wtapng_section_t* wtap_file_get_shb_info(wtap *wth);
-wtapng_iface_dsecriptions_t *wtap_file_get_idb_info(wtap *wth);
+wtapng_iface_descriptions_t *wtap_file_get_idb_info(wtap *wth);
/*** close the current file ***/
void wtap_sequential_close(wtap *wth);
int snaplen, gboolean compressed, int *err);
wtap_dumper* wtap_dump_open_ng(const char *filename, int filetype, int encap,
- int snaplen, gboolean compressed, wtapng_section_t *shb_hdr, wtapng_iface_dsecriptions_t *idb_inf, int *err);
+ int snaplen, gboolean compressed, wtapng_section_t *shb_hdr, wtapng_iface_descriptions_t *idb_inf, int *err);
wtap_dumper* wtap_dump_fdopen(int fd, int filetype, int encap, int snaplen,
gboolean compressed, int *err);