mirror of
https://github.com/clearlinux/kvmtool.git
synced 2026-08-28 18:15:41 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user