From 3166e1411936566dbb6ac2b0ab03963f52a20619 Mon Sep 17 00:00:00 2001 From: Dotan Barak Date: Tue, 3 Jul 2012 11:29:51 +0300 Subject: [PATCH] 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 --- net/rds/tcp.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/net/rds/tcp.h b/net/rds/tcp.h index f5e6f7bebb501..9421ad4b9100c 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 -- 2.50.1