duplicated packets

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all,

I am seeing a very strange behavior and I suspect it comes from the
kernel.

I have an application that writes to the network using raw socket:

arp_output = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_ALL));
int r = sendto(arp_output, p->ether_header(), p->size_of_ether_packet(),
                0, (sockaddr*)&ip_sock_addr, sizeof(ip_sock_addr));


Once in a while it seems that the kernel is duplicating the packet I am
sending. That is, I call sendto once, but I see two packets with
tcpdump.


Does this make sense to anyone?


--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux