From patchwork Thu Jun 30 08:41:01 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Asias He X-Patchwork-Id: 932282 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.4) with ESMTP id p5U8inpp003743 for ; Thu, 30 Jun 2011 08:44:49 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758843Ab1F3Iop (ORCPT ); Thu, 30 Jun 2011 04:44:45 -0400 Received: from mail-iy0-f174.google.com ([209.85.210.174]:44108 "EHLO mail-iy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758793Ab1F3Ioo (ORCPT ); Thu, 30 Jun 2011 04:44:44 -0400 Received: by mail-iy0-f174.google.com with SMTP id 12so1722680iyb.19 for ; Thu, 30 Jun 2011 01:44:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=OQXKvsf/QbJuBUSZHvHg2oS2P3ZOTF88wnQyfrwKshQ=; b=axPO01MjKPJ+SumgJyT+XLMMKrO28P/qOSkcOXhWAyyL/kVLqTMtiprXGst0s5cqG0 ZT4d4Df6jPxLweMkELdnmOL+7vKaFaNUF0+yv1sR0kvnpQ8HeHXOFXf1uDLGzBg3OnTO 6sHgXbNFi/YLImNjauoJ43g9mntu3FZ2j1cMY= Received: by 10.42.167.200 with SMTP id t8mr2028808icy.270.1309423484569; Thu, 30 Jun 2011 01:44:44 -0700 (PDT) Received: from localhost.localdomain ([219.224.169.130]) by mx.google.com with ESMTPS id d6sm1967338icx.1.2011.06.30.01.44.40 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 30 Jun 2011 01:44:44 -0700 (PDT) From: Asias He To: Pekka Enberg Cc: Cyrill Gorcunov , Ingo Molnar , Sasha Levin , Prasad Joshi , kvm@vger.kernel.org, Asias He Subject: [PATCH v2 13/31] kvm tools: Introduce struct uip_tcp to present TCP package. Date: Thu, 30 Jun 2011 16:41:01 +0800 Message-Id: <1309423279-3093-14-git-send-email-asias.hejun@gmail.com> X-Mailer: git-send-email 1.7.5.4 In-Reply-To: <1309423279-3093-1-git-send-email-asias.hejun@gmail.com> References: <1309423279-3093-1-git-send-email-asias.hejun@gmail.com> Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Thu, 30 Jun 2011 08:44:49 +0000 (UTC) Signed-off-by: Asias He --- tools/kvm/include/kvm/uip.h | 16 ++++++++++++++++ 1 files changed, 16 insertions(+), 0 deletions(-) diff --git a/tools/kvm/include/kvm/uip.h b/tools/kvm/include/kvm/uip.h index ccc1698..1368694 100644 --- a/tools/kvm/include/kvm/uip.h +++ b/tools/kvm/include/kvm/uip.h @@ -89,6 +89,22 @@ struct uip_udp { u8 payload[0]; } __attribute__((packed)); +struct uip_tcp { + /* + * FIXME: IP Options (IP hdr len > 20 bytes) are not supported + */ + struct uip_ip ip; + u16 sport; + u16 dport; + u32 seq; + u32 ack; + u8 off; + u8 flg; + u16 win; + u16 csum; + u16 urgent; +} __attribute__((packed)); + struct uip_pseudo_hdr { u32 sip; u32 dip;