7027650b5c
have a TPKT header at the beginning, so there's not need for it to have an offset as an argument; its callers don't have to know how big the TPKT header is (or we can put a #define in "packet-tpkt.h" for it). Get rid of the second argument. svn path=/trunk/; revision=4791
42 lines
1.4 KiB
C
42 lines
1.4 KiB
C
/* packet-tpkt.h
|
|
*
|
|
* Routines for TPKT dissection
|
|
*
|
|
* Copyright 2000, Philips Electronics N.V.
|
|
* Andreas Sikkema <andreas.sikkema@philips.com>
|
|
*
|
|
* $Id: packet-tpkt.h,v 1.7 2002/02/23 02:30:15 guy Exp $
|
|
*
|
|
* Ethereal - Network traffic analyzer
|
|
* By Gerald Combs <gerald@ethereal.com>
|
|
* Copyright 1998 Gerald Combs
|
|
*
|
|
* This program is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU General Public License
|
|
* as published by the Free Software Foundation; either version 2
|
|
* of the License, or (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program; if not, write to the Free Software
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
*/
|
|
|
|
/*
|
|
* Check whether this could be a TPKT-encapsulated PDU.
|
|
* Returns -1 if it's not, and the PDU length from the TPKT header
|
|
* if it is.
|
|
*/
|
|
extern int is_tpkt(tvbuff_t *tvb);
|
|
|
|
/*
|
|
* Dissect TPKT-encapsulated data in a TCP stream.
|
|
*/
|
|
extern void dissect_tpkt_encap(tvbuff_t *tvb, packet_info *pinfo,
|
|
proto_tree *tree, gboolean desegment,
|
|
dissector_handle_t subdissector_handle);
|