lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <4A661B2F.7000608@candelatech.com>
Date:	Tue, 21 Jul 2009 12:46:55 -0700
From:	Ben Greear <greearb@...delatech.com>
To:	NetDev <netdev@...r.kernel.org>
Subject: PATCH:  veth:  Zero timestamp in xmit path.

This patch zero's the timestamp before handing the packet to
the peer interface.  This lets the peer recalculate the rx timestamp
if it cares about timestamps.

The patch is against net-next, compile tested there.  Similar patch was
functionally tested against 2.6.31-rc3.


Signed-Off-By:  Ben Greear<greearb@...delatech.com>

diff --git a/drivers/net/veth.c b/drivers/net/veth.c
index f1d753d..190f784 100644
--- a/drivers/net/veth.c
+++ b/drivers/net/veth.c
@@ -171,6 +171,7 @@ static int veth_xmit(struct sk_buff *skb, struct net_device *dev)
  	if (skb->len > (rcv->mtu + MTU_PAD))
  		goto rx_drop;

+        skb->tstamp.tv64 = 0;
  	skb->pkt_type = PACKET_HOST;
  	skb->protocol = eth_type_trans(skb, rcv);
  	if (dev->features & NETIF_F_NO_CSUM)

Thanks,
Ben

-- 
Ben Greear <greearb@...delatech.com>
Candela Technologies Inc  http://www.candelatech.com


View attachment "veth_ts.patch" of type "text/plain" (423 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ