add perfcounter to pppoe

remotes/origin/master-1.0.x
Jamie 16 years ago committed by Victor Julien
parent afa8a6766e
commit fdbd09db6c

@ -128,7 +128,7 @@ typedef struct ICMPV4Hdr_
{
uint8_t type;
uint8_t code;
uint16_t csum;
uint16_t checksum;
/* XXX incomplete */
} ICMPV4Hdr;

@ -21,9 +21,7 @@
*/
void DecodePPPoE(ThreadVars *t, Packet *p, uint8_t *pkt, uint16_t len, PacketQueue *pq)
{
#ifdef DEBUG
printf("DecodePPPoEPacket\n");
#endif
PerfCounterIncr(COUNTER_DECODER_PPPOE, t->pca);
if (len < PPPOE_HEADER_LEN) {
DECODER_SET_EVENT(p, PPPOE_PKT_TOO_SMALL);

Loading…
Cancel
Save