openbcm

Git mirror of https://github.com/Broadcom-Network-Switching-Software/OpenBCM
git clone git://git.finwo.net/mirror/broadcom/openbcm
Log | Files | Refs | README

decode.h (739B)


      1 /*
      2  * 
      3  * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.
      4  * 
      5  * Copyright 2007-2020 Broadcom Inc. All rights reserved.
      6  *
      7  * This header file defines the interface to the packet decode routines.
      8  */
      9 
     10 #include <bcm/pkt.h>
     11 
     12 extern	int	d_packet_format(char *, int type, void *, int, void *);
     13 extern	int	d_packet_vformat(char *, char *, int type, void *, int, void *);
     14 
     15 /* Packet "type" on entry into decode routines */
     16 
     17 #define	DECODE_ETHER	1
     18 #define	DECODE_IP	2
     19 #define DECODE_TCP	3
     20 #define	DECODE_ARP	4
     21 #define	DECODE_GB_ETHER	5
     22 
     23 
     24 #if defined(BROADCOM_DEBUG)
     25 extern void bcm_pkt_dump(int unit, bcm_pkt_t *pkt, int dump_data);
     26 #endif  /* BROADCOM_DEBUG */