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

- Introduce struct uip_icmp to present ICMP package

- Implement uip_csum_icmp() to calculate ICMP checksum

- Current ICMP implementation in uip does not really send ICMP package
  to remote host in question, instead it just fake a ICMP reply to fool guest.

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/csum.c
tools/kvm/uip/icmp.c [new file with mode: 0644]
tools/kvm/uip/ipv4.c