diff options
author | Dmitry Kozlov <xeb@mail.ru> | 2015-07-07 17:31:53 +0300 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2015-07-07 17:31:53 +0300 |
commit | d5b314539669e2d13af8bc638dfbaa0516ca10ea (patch) | |
tree | 50ec01bc55cb7a129ac46e6025f9783f83a2800e | |
parent | 2883c323268800fc09fe1535d12528c8f054904d (diff) | |
download | accel-ppp-d5b314539669e2d13af8bc638dfbaa0516ca10ea.tar.gz accel-ppp-d5b314539669e2d13af8bc638dfbaa0516ca10ea.zip |
ipoe: disable udp checksum validation
-rw-r--r-- | accel-pppd/ctrl/ipoe/dhcpv4.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/accel-pppd/ctrl/ipoe/dhcpv4.c b/accel-pppd/ctrl/ipoe/dhcpv4.c index 21a62f58..f58a49a7 100644 --- a/accel-pppd/ctrl/ipoe/dhcpv4.c +++ b/accel-pppd/ctrl/ipoe/dhcpv4.c @@ -155,6 +155,11 @@ struct dhcpv4_serv *dhcpv4_create(struct triton_context_t *ctx, const char *ifna goto out_err; } + if (setsockopt(sock, SOL_SOCKET, SO_NO_CHECK, &f, sizeof(f))) { + log_error("setsockopt(SO_NO_CHECK): %s\n", strerror(errno)); + goto out_err; + } + if (bind(sock, &addr, sizeof(addr))) { log_error("bind: %s\n", strerror(errno)); goto out_err; |