]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
kvm tools: Add helper to return ethernet header length
authorAsias He <asias.hejun@gmail.com>
Wed, 29 Jun 2011 08:47:15 +0000 (16:47 +0800)
committerPekka Enberg <penberg@kernel.org>
Thu, 30 Jun 2011 07:42:41 +0000 (10:42 +0300)
Signed-off-by: Asias He <asias.hejun@gmail.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
tools/kvm/include/kvm/uip.h

index e79cc4ba5cad5a2de8e1a026c7d456253e746700..979e2b0d36c5eaffa8abff6f4c414dab1879a34a 100644 (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);