Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Wed, 30 Oct 2002 19:45:47 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Wed, 30 Oct 2002 19:45:47 -0500 Received: from e6.ny.us.ibm.com ([32.97.182.106]:60891 "EHLO e6.ny.us.ibm.com") by vger.kernel.org with ESMTP id ; Wed, 30 Oct 2002 19:45:46 -0500 Subject: How to get a local IPv4 address from within a kernel module? To: linux-kernel@vger.kernel.org X-Mailer: Lotus Notes Release 5.0.2a (Intl) 23 November 1999 Message-ID: From: Juan Gomez Date: Wed, 30 Oct 2002 16:52:05 -0800 X-MIMETrack: Serialize by Router on D03NM694/03/M/IBM(Release 6.0|September 26, 2002) at 10/30/2002 17:52:05 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 675 Lines: 17 Is there any standard way of doing this? I looked into ipv4 code but I did not find a function that would provide a direct, clean way to query the local IPv4 addresses of a given node. If this information is not available could we create an interface for it? Any suggestions on the way to do it? The interfaces provided to user-level applications do the copy to/from user that I guess will not work with kernel modules... Juan - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/