commit efcc013df9eee0c3d7c04a0dbef15858608bf6dd
Author: Radek Pazdera <rpazdera(a)redhat.com>
Date: Tue Dec 4 14:32:00 2012 +0100
multicast: Removing nonstandard C syntax for binary
The 0bXXXXXX is apparently a C extension and is not part of C standard.
I changed the constant to hex notation (0x4000).
Reported-by: Jan Tluka <jtluka(a)redhat.com>
Signed-off-by: Radek Pazdera <rpazdera(a)redhat.com>
test_tools/multicast/igmp_utils.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/test_tools/multicast/igmp_utils.h b/test_tools/multicast/igmp_utils.h
index 125232b..433fd77 100644
--- a/test_tools/multicast/igmp_utils.h
+++ b/test_tools/multicast/igmp_utils.h
@@ -98,7 +98,7 @@ void ip_header_init(struct iphdr *iph, struct in_addr saddr,
iph->ihl = 6;
iph->tos = 0xc0;
iph->id = htons(0);
- iph->frag_off = htons(0b0100000000000000); /* DF */
+ iph->frag_off = htons(0x4000); /* DF 0b 0100 0000 0000 0000 */
iph->ttl = 1;
iph->protocol = IPPROTO_IGMP;
Show replies by date