Message ID | 1309423279-3093-10-git-send-email-asias.hejun@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/tools/kvm/include/kvm/uip.h b/tools/kvm/include/kvm/uip.h index 473b9c7..e79cc4b 100644 --- a/tools/kvm/include/kvm/uip.h +++ b/tools/kvm/include/kvm/uip.h @@ -141,6 +141,16 @@ static inline u16 uip_ip_len(struct uip_ip *ip) return htons(ip->len); } +static inline u16 uip_udp_hdrlen(struct uip_udp *udp) +{ + return 8; +} + +static inline u16 uip_udp_len(struct uip_udp *udp) +{ + return ntohs(udp->len); +} + 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);
Signed-off-by: Asias He <asias.hejun@gmail.com> --- tools/kvm/include/kvm/uip.h | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-)