From 0960ac4dfdbfba5a81c56a49cfc6201ecd8f48e3 Mon Sep 17 00:00:00 2001 From: Michael Mann Date: Sun, 13 Dec 2015 16:54:16 -0500 Subject: Create capture dissector tables. They are modeled after dissection dissector tables, but for the moment, don't have/need the flexibility. They are intended to be much simpler/faster than full dissection. The two most used/needed are "wtap_encap" and "ethertype", so they were the basis of starting to use and test capture dissector table API. Others may be added in the future. The "capture dissector" function signature needed a bit of tweeking to handling "claiming" of a packet. The current application of this is capture functions returning TRUE if they affected a "type" of packet count. Returning FALSE ends up considering the packet an "other" type. Change-Id: I81d06a6ccb2c03665f087258a46b9d78d513d6cd Reviewed-on: https://code.wireshark.org/review/12607 Petri-Dish: Michael Mann Tested-by: Petri Dish Buildbot Reviewed-by: Michael Mann --- epan/packet.h | 3 --- 1 file changed, 3 deletions(-) (limited to 'epan/packet.h') diff --git a/epan/packet.h b/epan/packet.h index 5b98f2396d..a075b6afcf 100644 --- a/epan/packet.h +++ b/epan/packet.h @@ -699,9 +699,6 @@ extern void dissect_file(struct epan_dissect *edt, struct wtap_pkthdr *phdr, tvbuff_t *tvb, frame_data *fd, column_info *cinfo); -/* These functions are in packet-ethertype.c */ -extern void capture_ethertype(guint16 etype, const guchar *pd, int offset, - int len, packet_counts *ld, const union wtap_pseudo_header *pseudo_header); /* Structure passed to the ethertype dissector */ typedef struct ethertype_data_s { -- cgit v1.2.3