From: Dotan Barak Date: Tue, 3 Jul 2012 08:29:51 +0000 (+0300) Subject: rds: prepare support to kernel 2.6.39-200.1.1.el5uek: add the macro NIPQUAD_* X-Git-Tag: v4.1.12-92~319^2^2~2^2~19 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=3166e1411936566dbb6ac2b0ab03963f52a20619;p=users%2Fjedix%2Flinux-maple.git rds: prepare support to kernel 2.6.39-200.1.1.el5uek: add the macro NIPQUAD_* Add the macro: NIPQUAD NIPQUAD_FMT Signed-off-by: Dotan Barak --- diff --git a/net/rds/tcp.h b/net/rds/tcp.h index f5e6f7bebb50..9421ad4b9100 100644 --- a/net/rds/tcp.h +++ b/net/rds/tcp.h @@ -87,4 +87,16 @@ DECLARE_PER_CPU(struct rds_tcp_statistics, rds_tcp_stats); unsigned int rds_tcp_stats_info_copy(struct rds_info_iterator *iter, unsigned int avail); +#ifndef NIPQUAD +#define NIPQUAD(addr) \ + ((unsigned char *)&(addr))[0], \ + ((unsigned char *)&(addr))[1], \ + ((unsigned char *)&(addr))[2], \ + ((unsigned char *)&(addr))[3] +#endif + +#ifndef NIPQUAD_FMT +#define NIPQUAD_FMT "%u.%u.%u.%u" +#endif + #endif