diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2019-12-16 07:42:47 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-12-16 07:42:47 -0500 |
| commit | 04dd9e420ee6f5a7d5c47cd50333879f78abc094 (patch) | |
| tree | ba47ee183676532a6bbee87ce173f02dd74d0881 /lib/sockopt.c | |
| parent | f4d7bc0820f04df798eb208fcce5f5f7e4b18034 (diff) | |
| parent | ba7eb55ec661e18156d9d390b196b6659d0a4752 (diff) | |
Merge pull request #5535 from opensourcerouting/santa-elf
*: cleanup elves were here
Diffstat (limited to 'lib/sockopt.c')
| -rw-r--r-- | lib/sockopt.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/lib/sockopt.c b/lib/sockopt.c index 7726d74ff7..3b12d16cbc 100644 --- a/lib/sockopt.c +++ b/lib/sockopt.c @@ -122,21 +122,6 @@ int setsockopt_ipv6_pktinfo(int sock, int val) } /* Set multicast hops val to the socket. */ -int setsockopt_ipv6_checksum(int sock, int val) -{ - int ret; - -#ifdef GNU_LINUX - ret = setsockopt(sock, IPPROTO_RAW, IPV6_CHECKSUM, &val, sizeof(val)); -#else - ret = setsockopt(sock, IPPROTO_IPV6, IPV6_CHECKSUM, &val, sizeof(val)); -#endif /* GNU_LINUX */ - if (ret < 0) - flog_err(EC_LIB_SOCKET, "can't setsockopt IPV6_CHECKSUM"); - return ret; -} - -/* Set multicast hops val to the socket. */ int setsockopt_ipv6_multicast_hops(int sock, int val) { int ret; |
