add perfcounter to pppoe

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

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

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

Loading…
Cancel
Save