[2357] in linux-net channel archive

home help back first fref pref prev next nref lref last post

SOLUTION: That's what "net-pf-3" means...

daemon@ATHENA.MIT.EDU (Martin Kraemer)
Fri Apr 5 01:28:54 1996

To: linux-net@vger.rutgers.edu (Linux Network Channel)
Date: 	Thu, 4 Apr 1996 12:42:24 +0200 (MET DST)
From: Martin Kraemer <martin@deejai.mch.sni.de>

Hello,

I had been wondering what the "modprobe: Can't locate module net-pf-3"
meant, which appeared in recent kernel versions. In socket.c, one can find
this code snippet...

+#ifdef CONFIG_KERNELD
+	/* Attempt to load a protocol module if the find failed. */
+	if (i < 0)
+	{
+		char module_name[30];
+		sprintf(module_name,"net-pf-%d",family);
+		request_module(module_name);
+		i = find_protocol_family(family);
+       }

Now you have to interpret what pf-3, pf-4 and pf-5 are.
A search for "protocol families" finds this in <linux/socket.h>:

> /* Protocol families, same as address families. */
> #define PF_UNSPEC       AF_UNSPEC
> #define PF_UNIX         AF_UNIX
> #define PF_INET         AF_INET
> #define PF_AX25         AF_AX25
> #define PF_IPX          AF_IPX
> ...

This resolves to the following #defines in <linux/socket.h>:
> /* Supported address families. */
> #define AF_UNSPEC       0
> #define AF_UNIX         1       /* Unix domain sockets          */
> #define AF_INET         2       /* Internet IP Protocol         */
> #define AF_AX25         3       /* Amateur Radio AX.25          */
> #define AF_IPX          4       /* Novell IPX                   */
> #define AF_APPLETALK    5       /* Appletalk DDP                */
> #define AF_NETROM       6       /* Amateur radio NetROM         */
> #define AF_BRIDGE       7       /* Multiprotocol bridge         */
> #define AF_AAL5         8       /* Reserved for Werner's ATM    */
> #define AF_X25          9       /* Reserved for X.25 project    */
> #define AF_INET6        10      /* IP version 6                 */
> #define AF_MAX          12      /* For now.. */

Ahh.. There we are! So,...
    net-pf-3    tries to create a socket (AF_AX25,..)
    net-pf-4    tries to create a socket (AF_IPX,..)
    net-pf-5    tries to create a socket (AF_APPLETALK,..)

It seems that ifconfig tries to open these all when it configures an
interface.

BUT: Can't it do this in a different way, in order to avoid the error
messages? I mean,
    "modprobe: Can't locate module net-pf-4"
    "modprobe: Can't locate module net-pf-3"
    "modprobe: Can't locate module net-pf-5"
at system startup seems to imply that something is severely broken....

    Martin
-- 
| S I E M E N S |   Martin.Kraemer@mch.sni.de   |      Siemens Nixdorf
| ------------- |   Voice: +49-89-636-46021     |  Informationssysteme AG
| N I X D O R F |   FAX:   +49-89-636-44994     |   81730 Munich, Germany
~~~~~~~~~~~~~~~~My opinions only, of course; pgp key available on request


home help back first fref pref prev next nref lref last post