From: Asias He Date: Wed, 29 Jun 2011 08:47:15 +0000 (+0800) Subject: kvm tools: Add helper to return ethernet header length X-Git-Tag: next-20110824~3^2~177 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=6d9c81bea3f0f80273c1b5c91393fca73ba8cdb1;p=karo-tx-linux.git kvm tools: Add helper to return ethernet header length Signed-off-by: Asias He Signed-off-by: Pekka Enberg --- diff --git a/tools/kvm/include/kvm/uip.h b/tools/kvm/include/kvm/uip.h index e79cc4ba5cad..979e2b0d36c5 100644 --- a/tools/kvm/include/kvm/uip.h +++ b/tools/kvm/include/kvm/uip.h @@ -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);