]> git.karo-electronics.de Git - karo-tx-linux.git/commit
kvm tools: Add helper to allocate and get TCP initial sequence number
authorAsias He <asias.hejun@gmail.com>
Wed, 29 Jun 2011 08:47:23 +0000 (16:47 +0800)
committerPekka Enberg <penberg@kernel.org>
Thu, 30 Jun 2011 07:42:43 +0000 (10:42 +0300)
commit926caee7295597c28bc0b8c6294f94e1d85b78a3
treecb8e7db8dc6959b74f65718aecc6534d4ace9fb1
parent2772839ecb128f05b5a0c55f1d5a96c77bf0dfdb
kvm tools: Add helper to allocate and get TCP initial sequence number

Guest's initial sequence number can be found in the SYN package that
guest send to us to intialize a TCP session.

Remote server's initial sequence number is faked. RFC 793 specifies
that the ISN should be viewed as a 32-bit counter that increments
by one every 4 microseconds. For simplicity's sake, current
implementation in uip just returns a constant.

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