pbuf.c around 627:

static void processIpPkt(const u_char *bp,
...
  /* Need to copy this over in case bp isn't properly aligned.
   * This occurs on SunOS 4.x at least.
   * Paul D. Smith <[EMAIL PROTECTED]>
   */
  memcpy(&ip, bp, sizeof(struct ip));
  hlen = (u_int)ip.ip_hl * 4;

  if(vlanId != -1) {
    allocateElementHash(actualDeviceId, 1 /* VLAN hash */);
    updateElementHash(myGlobals.device[actualDeviceId].vlanHash,
                      vlanId, vlanId,  1 /* 1 packet */, length);
  }

  incrementTrafficCounter(&myGlobals.device[actualDeviceId].ipPkts, 1);

  if((bp != NULL) && (in_cksum((const u_short *)bp, hlen, 0) != 0)) {
    
incrementTrafficCounter(&myGlobals.device[actualDeviceId].rcvdPktStats.badChecksum, 1);
    return;
  }


---------- Original Message ----------------------------------
From: Craig Humphrey <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Date:  Wed, 2 Apr 2003 14:10:01 +1200

>Hi Guys,
>
>I'm still struggling with my ntop v2.1.90 listening to a stealth interface
>that's SPANed on a VLANed switch.
>It's correctly reporting the volume of VLAN traffic on the IP Protos | VLANs
>page, but on the Stats | Traffic page, the total traffic is correct, but
>99.4% of packets are "Bad Packets (Checksum)".
>
>Any ideas on this?
>
>Config/Compile info available on request...
>
>Later'ish
>Craig
>_______________________________________________
>Ntop mailing list
>[EMAIL PROTECTED]
>http://listgateway.unipi.it/mailman/listinfo/ntop
>


____________________________________________________________
Free 20MB Web Site Hosting and Personalized E-mail Service!
Get It Now At Doteasy.com http://www.doteasy.com/et/
_______________________________________________
Ntop mailing list
[EMAIL PROTECTED]
http://listgateway.unipi.it/mailman/listinfo/ntop

Reply via email to