From 438eedfbeebbcbbf05c0ef9342c95a8a2163aacb Mon Sep 17 00:00:00 2001 From: Akshit Mangotra Date: Wed, 5 May 2021 04:40:19 +0530 Subject: [PATCH 1/2] FIX #31 : Renamed indentifiers '_GLB_DIRECTOR_CONFIG_H' and '__IPT_GLBREDIRECT_MATCH__' according to the naming conventions of C language. --- src/glb-director/glb_director_config.h | 4 ++-- src/glb-redirect/ipt_glbredirect.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/glb-director/glb_director_config.h b/src/glb-director/glb_director_config.h index 2053d7d..57fda3e 100644 --- a/src/glb-director/glb_director_config.h +++ b/src/glb-director/glb_director_config.h @@ -30,8 +30,8 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef _GLB_DIRECTOR_CONFIG_H -#define _GLB_DIRECTOR_CONFIG_H +#ifndef GLB_DIRECTOR_CONFIG_H +#define GLB_DIRECTOR_CONFIG_H #include #define MAX_FLOW_PATHS 32 diff --git a/src/glb-redirect/ipt_glbredirect.h b/src/glb-redirect/ipt_glbredirect.h index 57e25ba..4bf4ecf 100644 --- a/src/glb-redirect/ipt_glbredirect.h +++ b/src/glb-redirect/ipt_glbredirect.h @@ -19,8 +19,8 @@ * along with glb-redirect. If not, see . */ -#ifndef __IPT_GLBREDIRECT_MATCH__ -#define __IPT_GLBREDIRECT_MATCH__ +#ifndef IPT_GLBREDIRECT_MATCH +#define IPT_GLBREDIRECT_MATCH struct ipt_glbredirect_info { From 338bcbd426099a6e805dd1a49caafc32c364e365 Mon Sep 17 00:00:00 2001 From: Akshit Mangotra Date: Wed, 5 May 2021 23:09:30 +0530 Subject: [PATCH 2/2] Modified packet_parsing.h and pdnet.h identifiers according to naming convention of the C language standard. --- src/glb-hashing/packet_parsing.h | 6 +++--- src/glb-hashing/pdnet.h | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/glb-hashing/packet_parsing.h b/src/glb-hashing/packet_parsing.h index c0264e3..e606a63 100644 --- a/src/glb-hashing/packet_parsing.h +++ b/src/glb-hashing/packet_parsing.h @@ -30,8 +30,8 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef _PACKET_PARSING_H_ -#define _PACKET_PARSING_H_ +#ifndef PACKET_PARSING_H +#define PACKET_PARSING_H #include @@ -461,4 +461,4 @@ static __always_inline uint64_t glb_compute_hash(glb_route_context *route_contex return pkt_hash; } -#endif /* _PACKET_PARSING_H_ */ +#endif /* PACKET_PARSING_H */ diff --git a/src/glb-hashing/pdnet.h b/src/glb-hashing/pdnet.h index 8001553..e7ee9e3 100644 --- a/src/glb-hashing/pdnet.h +++ b/src/glb-hashing/pdnet.h @@ -12,8 +12,8 @@ . */ -#ifndef _PDNET_H_ -#define _PDNET_H_ +#ifndef PDNET_H +#define PDNET_H #include #include @@ -206,4 +206,4 @@ struct pdnet_icmpv6_too_big_hdr { #define PDNET_IP_PROTO_UDP 0x11 #define PDNET_IP_PROTO_ICMPV6 0x3A -#endif /* _PDNET_H_ */ +#endif /* PDNET_H */