[ofa-general] Re: [PATCH 23/26] RDS: Add AF and PF #defines for RDS sockets
From: David Miller <davem@davemloft.net>
Date: 2009-02-25 07:26:48
From: David Miller <davem@davemloft.net>
Date: 2009-02-25 07:26:48
From: Andy Grover <redacted> Date: Tue, 24 Feb 2009 17:30:40 -0800
@@ -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_UNSPEC
Pick an unused number, you don't have to increment AF_MAX to allocate a value. And I don't want to hear any whining about how you've used this value of 36 internally for a long time or anything like that.