Re: Can't locate module net-pf-3 (or 5)

Peter Jones (thanatos@drealm.org)
Sat, 13 Apr 1996 20:50:53 +0100


You wrote:
> You wrote:
> >
> > Aha...
> >
> > Alan, how do I map protocol names to numbers to modules?
> >
> > net/protocols.c contains the following:
> > unix
> > p8022
> > p8022tr
> > snap
> > rif
> > ax25
> > nr
> > inet
> > ipx
> > atalk
> >
> > My kernel contains all of them. "ipx" and "appletalk" modules
> > I can find. Are the protocol numbers for these the obvious
> > 8 and 9? Or is there something more subtle going on that I
> > haven't yet fathomed?
> >
> > -- Peter

> Excerpt from <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.. */

> /* 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
> #define PF_APPLETALK AF_APPLETALK
> #define PF_NETROM AF_NETROM
> #define PF_BRIDGE AF_BRIDGE
> #define PF_AAL5 AF_AAL5
> #define PF_X25 AF_X25
> #define PF_INET6 AF_INET6

> Cheers,

> Bjorn <bj0rn@blox.se>

Thanks!

I've now found the "sock_register" calls under "net/*/". This covers
"atalk", "ax25", "inet", "ipx", "netrom" and "unix".

That leaves "p8022", "p8022tr", "snap" and "rif" from net/protocols.c.
Maybe these are internal ones?

-- Peter