Blame SOURCES/bz1337109-tickle_tcp-fix.patch
|
|
937446 |
From 1e3c0b11d68b8713f20abe12d6997eb853def797 Mon Sep 17 00:00:00 2001
|
|
|
937446 |
From: Oyvind Albrigtsen <oalbrigt@redhat.com>
|
|
|
937446 |
Date: Tue, 19 Apr 2016 10:15:50 +0200
|
|
|
937446 |
Subject: [PATCH] tickle_tcp: Fix "Failed to open raw socket (Invalid
|
|
|
937446 |
argument)" issue
|
|
|
937446 |
|
|
|
937446 |
---
|
|
|
937446 |
tools/tickle_tcp.c | 2 +-
|
|
|
937446 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
937446 |
|
|
|
937446 |
diff --git a/tools/tickle_tcp.c b/tools/tickle_tcp.c
|
|
|
937446 |
index cf0bdcb..7c5a537 100644
|
|
|
937446 |
--- a/tools/tickle_tcp.c
|
|
|
937446 |
+++ b/tools/tickle_tcp.c
|
|
|
937446 |
@@ -245,7 +245,7 @@ int send_tickle_ack(const sock_addr *dst,
|
|
|
937446 |
ip4pkt.tcp.window = htons(1234);
|
|
|
937446 |
ip4pkt.tcp.check = tcp_checksum((uint16_t *)&ip4pkt.tcp, sizeof(ip4pkt.tcp), &ip4pkt.ip);
|
|
|
937446 |
|
|
|
937446 |
- s = socket(AF_INET, SOCK_RAW, htons(IPPROTO_RAW));
|
|
|
937446 |
+ s = socket(AF_INET, SOCK_RAW, IPPROTO_RAW);
|
|
|
937446 |
if (s == -1) {
|
|
|
937446 |
fprintf(stderr, "Failed to open raw socket (%s)\n", strerror(errno));
|
|
|
937446 |
return -1;
|