OpenVZ Forum


Home » Mailing lists » Users » Running DHCP on VPS, ( on a router.. )
Re: Running DHCP on VPS, ( on a router.. ) [message #20986 is a reply to message #20971] Sat, 29 September 2007 10:20 Go to previous messageGo to previous message
dev is currently offline  dev
Messages: 1693
Registered: September 2005
Location: Moscow
Senior Member

Can you please revert previous patch and apply the one I attached?
Does it help?

Thanks,
Kirill

Dariush Pietrzak wrote:
>>if possible plz check with the patch attached.
> 
>  with this patch in, my dhcp server started working...
> what should I do next?
> 


--- ./drivers/net/veth.c.ve45678	2007-09-29 14:07:21.000000000 +0400
+++ ./drivers/net/veth.c	2007-09-29 14:18:31.000000000 +0400
@@ -306,17 +306,14 @@ static int veth_xmit(struct sk_buff *skb
 		/* from VE0 to VEX */
 		if (ve_is_super(rcv->owner_env))
 			goto out;
-		if (is_multicast_ether_addr(
-					((struct ethhdr *)skb->data)->h_dest))
+		if (is_multicast_ether_addr(eth_hdr(skb)->h_dest))
 			goto out;
-		if (compare_ether_addr(((struct ethhdr *)skb->data)->h_dest,
-					rcv->dev_addr))
+		if (compare_ether_addr(eth_hdr(skb)->h_dest, rcv->dev_addr))
 			goto outf;
 	} else if (!ve_is_super(dev->owner_env) &&
 			!entry->allow_mac_change) {
 		/* from VE to VE0 */
-		if (compare_ether_addr(((struct ethhdr *)skb->data)->h_source,
-					dev->dev_addr))
+		if (compare_ether_addr(eth_hdr(skb)->h_source, dev->dev_addr))
 			goto outf;
 	}
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Fwd: boot error - unable to mount root fs on unknown-block(0, 0)
Next Topic: Load Balacing of OpenVZ VEs with LVS and Heartbeat
Goto Forum:
  


Current Time: Sat Apr 27 19:29:56 GMT 2024

Total time taken to generate the page: 0.02472 seconds