Re: [PATCH 23/26] RDS: Add AF and PF #defines for RDS sockets
From: David Miller <davem@davemloft.net>
Date: 2009-02-25 11:59:02
From: David Miller <davem@davemloft.net>
Date: 2009-02-25 11:59:02
From: "Rémi Denis-Courmont" <redacted> Date: Wed, 25 Feb 2009 13:36:36 +0200
On Wednesday 25 February 2009 09:26:48 ext David Miller, you wrote:quoted
From: Andy Grover <redacted> Date: Tue, 24 Feb 2009 17:30:40 -0800quoted
@@ -191,7 +191,8 @@ struct ucred { #define AF_RXRPC 33 /* RxRPC sockets */ #define AF_ISDN 34 /* mISDN sockets */ #define AF_PHONET 35 /* Phonet sockets */ -#define AF_MAX 36 /* For now.. */ +#define AF_RDS 36 /* RDS sockets */ +#define AF_MAX 37 /* For now.. */ /* Protocol families, same as address families. */ #define PF_UNSPEC AF_UNSPECPick an unused number, you don't have to increment AF_MAX to allocate a value.But that patch is also allocating a PF value and net/socket.c has:
I'm saying to use a lower number, like 21, 27, 28, etc.