[ofa-general] Re: [PATCH 23/26] RDS: Add AF and PF #defines for RDS sockets

David Miller davem at davemloft.net
Tue Feb 24 23:26:48 PST 2009


From: Andy Grover <andy.grover at oracle.com>
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.



More information about the general mailing list