]> git.karo-electronics.de Git - karo-tx-linux.git/commit
kvm tools: Add helpers to return TCP {header, total, payload} length
authorAsias He <asias.hejun@gmail.com>
Wed, 29 Jun 2011 08:47:20 +0000 (16:47 +0800)
committerPekka Enberg <penberg@kernel.org>
Thu, 30 Jun 2011 07:42:42 +0000 (10:42 +0300)
commitcacbd4b499fd667dc8c1e4f51582c83d7034294d
tree04d484020485abb0b0ada392229314f99bf55ce6
parent4ad9be6f8353720ecfcb10de6251b1a6e7d58d6e
kvm tools: Add helpers to return TCP {header, total, payload} length

This patch adds three helpers uip_tcp_hdrlen(), uip_tcp_len(),
uip_tcp_payloadlen() to return TCP header length, TCP totoal
length, and tcp payload length.

Signed-off-by: Asias He <asias.hejun@gmail.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
tools/kvm/include/kvm/uip.h