Convert X.25 dissector to use tvbuffs.
svn path=/trunk/; revision=2007
This commit is contained in:
parent
294cd03b27
commit
b7b0a32400
|
@ -2,7 +2,7 @@
|
|||
* Routines for lapb frame disassembly
|
||||
* Olivier Abad <abad@daba.dhis.net>
|
||||
*
|
||||
* $Id: packet-lapb.c,v 1.17 2000/05/25 14:57:34 oabad Exp $
|
||||
* $Id: packet-lapb.c,v 1.18 2000/05/25 21:34:56 oabad Exp $
|
||||
*
|
||||
* Ethereal - Network traffic analyzer
|
||||
* By Gerald Combs <gerald@zing.org>
|
||||
|
@ -114,8 +114,7 @@ dissect_lapb(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
|
|||
/* not end of frame ==> X.25 */
|
||||
if (tvb_length(tvb) > 2) {
|
||||
next_tvb = tvb_new_subset(tvb, 2, -1, -1);
|
||||
tvb_compat(next_tvb, &next_pd, &next_offset);
|
||||
dissect_x25(pinfo->pseudo_header, next_pd, next_offset, pinfo->fd, tree);
|
||||
dissect_x25(next_tvb, pinfo, tree);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
1128
packet-x25.c
1128
packet-x25.c
File diff suppressed because it is too large
Load Diff
|
@ -1,6 +1,6 @@
|
|||
/* packet-x25.h
|
||||
*
|
||||
* $Id: packet-x25.h,v 1.5 2000/05/19 23:06:10 gram Exp $
|
||||
* $Id: packet-x25.h,v 1.6 2000/05/25 21:34:58 oabad Exp $
|
||||
*
|
||||
* Ethereal - Network traffic analyzer
|
||||
* By Gerald Combs <gerald@zing.org>
|
||||
|
@ -22,5 +22,4 @@
|
|||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
void dissect_x25(const union wtap_pseudo_header *, const u_char *, int, frame_data *,
|
||||
proto_tree *);
|
||||
void dissect_x25(tvbuff_t *, packet_info *, proto_tree *);
|
||||
|
|
Loading…
Reference in New Issue