Received: with ECARTIS (v1.0.0; list netdev); Thu, 30 Dec 2004 20:59:07 -0800 (PST) Received: from web51507.mail.yahoo.com (web51507.mail.yahoo.com [206.190.38.199]) by oss.sgi.com (8.13.0/8.13.0) with SMTP id iBV4wdcc025581 for ; Thu, 30 Dec 2004 20:59:00 -0800 Received: (qmail 11917 invoked by uid 60001); 31 Dec 2004 05:07:09 -0000 Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; b=b6hc6PeWilX1ZXzoDq8LV284CTl08UzQWVBhLIm9wvwIcv74gOzOHyJehHXzq+TjJsQKXp0fZnB5XSA5eCwEKdvsdQ7pGfAVYHclYnIytqbBTjm4wrjECwjUkopjFNDbf0GO7xg2YuKIqX1uZkuZAAbyXQEhep87G9CjSNESP9k= ; Message-ID: <20041231050709.11915.qmail@web51507.mail.yahoo.com> Received: from [221.15.137.76] by web51507.mail.yahoo.com via HTTP; Thu, 30 Dec 2004 21:07:09 PST Date: Thu, 30 Dec 2004 21:07:09 -0800 (PST) From: Park Lee Subject: Issue on packets sending through ip_route_output_key() to xfrm_lookup() in native IPsec To: netdev@oss.sgi.com MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: ClamAV 0.80/645/Mon Dec 27 14:56:20 2004 clamav-milter version 0.80j on 127.0.0.1 X-Virus-Status: Clean X-archive-position: 13272 X-ecartis-version: Ecartis v1.0.0 Sender: netdev-bounce@oss.sgi.com Errors-to: netdev-bounce@oss.sgi.com X-original-sender: parklee_sel@yahoo.com Precedence: bulk X-list: netdev Hi, In Linux native IPsec, there is a function xfrm_lookup(struct dst_entry **dst_p, struct flowi *fl, struct sock *sk, int flags) (in /usr/src/linux-2.6.5-1.358/net/xfrm/xfrm_policy.c). Whenever a packet is sending, kernel will call xfrm_lookup() to finds/creates a bundle for it. xfrm_lookup() can be called by many functions. one of these functions is ip_route_output_key(). we can see its definition as follows: int ip_route_output_key(struct rtable **rp, struct flowi *flp) { int err; if ((err = __ip_route_output_key(rp, flp)) != 0) return err; return flp->proto ? xfrm_lookup((struct dst_entry**)rp, flp, NULL, 0) : 0; } As ip_route_output_key() calls xfrm_lookup() with the argument sk set to NULL, Does this means that the packets sending through ip_route_output_key() to xfrm_lookup() have no corresponding local socket with them (because their sk is NULL)? Are these packets all created by special kernel socket (i.e. icmp_socket and tcp_socket)? Thank you very much. ===== Best Regards, Park Lee __________________________________ Do you Yahoo!? Dress up your holiday email, Hollywood style. Learn more. http://celebrity.mail.yahoo.com