Hayim, With your tcpdump output are you sure that it is two of the same packet (same sequence number etc...) It could be that it (the stack) is expecting a reply or getting a NAK and resending the packet. If that is the case I believe that the seq numbers should be the same. Karl On 2/19/08, Hayim <hayim@xxxxxxxxxxxx> wrote: > > 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 > > -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ