[Users] Running DHCP on VPS, ( on a router.. )
Kirill Korotaev
dev at sw.ru
Sat Sep 29 06:22:41 EDT 2007
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?
>
-------------- next part --------------
--- ./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;
}
More information about the Users
mailing list