[ofa-general] RE: [PATCH/RFC] RDMA/cma: Remove padding arrays by using struct sockaddr_storage

Sean Hefty sean.hefty at intel.com
Thu Jul 31 12:06:18 PDT 2008


>There are a few places that the RDMA CM code handles IPv6 by doing
>
>	struct sockaddr		addr;
>	u8			pad[sizeof(struct sockaddr_in6) -
>				    sizeof(struct sockaddr)];
>
>This is fragile and ugly; handle this in a better way with just
>
>	struct sockaddr_storage	addr;
>
>Signed-off-by: Roland Dreier <rolandd at cisco.com>
>---
>Any objections to merging the cleanup below?

nope - thanks





More information about the general mailing list