diff options
| author | David Lamparter <equinox@diac24.net> | 2019-11-27 21:49:00 +0100 |
|---|---|---|
| committer | David Lamparter <equinox@diac24.net> | 2019-12-14 12:41:19 +0100 |
| commit | eb51bb9b1fa2fbb339c583cb5b479246b0821dcc (patch) | |
| tree | 5124272233040bf909cbd3d5e58832a72107d558 /lib/sockopt.c | |
| parent | 25d86233403523c3c03ecc5bc1450c6da37fc6cc (diff) | |
lib: random unused bits cleanup
Signed-off-by: David Lamparter <equinox@diac24.net>
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; |
