Displaying 2 results from an estimated 2 matches for "ipproto_".
Did you mean:
ipproto
2016 Jan 27
2
ctdb, raw sockets and CVE-2015-8543
...o open raw socket (Invalid argument)
| Could not find which interface the ip address is hosted on. can not release it
and
| common/system_linux.c:344 failed to open raw socket (Invalid argument)
The corresponding parts in ctdb's code look like this:
| s = socket(AF_INET, SOCK_RAW, htons(IPPROTO_RAW));
converting IPPROTO_RAW to 0xff00 (from strace):
| socket(PF_INET, SOCK_RAW, 0xff00 /* IPPROTO_??? */) = -1 EINVAL (Invalid argument)
Removing htons() from both calls seems to fix the issue for us. Is it
possible that the call to htons is just wrong and should be removed?
-- Adi
[1] https...
2016 Jan 29
0
ctdb, raw sockets and CVE-2015-8543
...nt)
> | Could not find which interface the ip address is hosted on. can not
> release it
> and
> | common/system_linux.c:344 failed to open raw socket (Invalid argument)
>
> The corresponding parts in ctdb's code look like this:
> | s = socket(AF_INET, SOCK_RAW, htons(IPPROTO_RAW));
> converting IPPROTO_RAW to 0xff00 (from strace):
> | socket(PF_INET, SOCK_RAW, 0xff00 /* IPPROTO_??? */) = -1 EINVAL
> (Invalid argument)
>
> Removing htons() from both calls seems to fix the issue for us. Is it
> possible that the call to htons is just wrong and should b...