kvm tools: Add helper to return ethernet header length

Signed-off-by: Asias He <asias.hejun@gmail.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
This commit is contained in:
Asias He
2011-06-29 16:47:15 +08:00
committed by Will Deacon
parent 8df66da791
commit 39b72fd01d
+5
View File
@@ -151,6 +151,11 @@ static inline u16 uip_udp_len(struct uip_udp *udp)
return ntohs(udp->len);
}
static inline u16 uip_eth_hdrlen(struct uip_eth *eth)
{
return sizeof(*eth);
}
int uip_tx_do_ipv4_icmp(struct uip_tx_arg *arg);
int uip_tx_do_ipv4(struct uip_tx_arg *arg);
int uip_tx_do_arp(struct uip_tx_arg *arg);