]> git.karo-electronics.de Git - karo-tx-linux.git/commit
kvm tools: Add IPV4 support for uip
authorAsias He <asias.hejun@gmail.com>
Wed, 29 Jun 2011 08:47:08 +0000 (16:47 +0800)
committerPekka Enberg <penberg@kernel.org>
Thu, 30 Jun 2011 07:41:49 +0000 (10:41 +0300)
commit6f17bcbeb3a18ac84e9c5e707a1cb45dfb6c1d9a
tree40aebd58b70e40182929f50f0a8298ab9f5cae53
parent98198e32d2cc6965656af2b075ec65f5c2a4c4a2
kvm tools: Add IPV4 support for uip

- Introduce struct uip_ip to present IP package

- Add a helper uip_ip_len() to return totoal length of a IP package

- Add a helper uip_ip_hdrlen() to return the IP header length

- Currently, uip does not support IP options
  Drop IP package if IP header length is not 20 bytes which means it
  contains IP options.

Signed-off-by: Asias He <asias.hejun@gmail.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
tools/kvm/Makefile
tools/kvm/include/kvm/uip.h
tools/kvm/uip/ipv4.c [new file with mode: 0644]