summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Kozlov <xeb@mail.ru>2015-07-07 17:31:53 +0300
committerDmitry Kozlov <xeb@mail.ru>2015-07-07 17:31:53 +0300
commitd5b314539669e2d13af8bc638dfbaa0516ca10ea (patch)
tree50ec01bc55cb7a129ac46e6025f9783f83a2800e
parent2883c323268800fc09fe1535d12528c8f054904d (diff)
downloadaccel-ppp-d5b314539669e2d13af8bc638dfbaa0516ca10ea.tar.gz
accel-ppp-d5b314539669e2d13af8bc638dfbaa0516ca10ea.zip
ipoe: disable udp checksum validation
-rw-r--r--accel-pppd/ctrl/ipoe/dhcpv4.c5
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;