summaryrefslogtreecommitdiff
path: root/accel-pppd
diff options
context:
space:
mode:
authorEshenko Dmitriy <dmitriy.eshenko@vyos.io>2022-10-26 18:29:15 +0300
committerGitHub <noreply@github.com>2022-10-26 18:29:15 +0300
commitf4a22056a221d69bf8d1aaa8eca39f276b52431d (patch)
tree00e5424dcd54e41d7fc6baec8668528fee3f999c /accel-pppd
parent2b865db72bc2ddc6411950d72f1c23e8ef115b8a (diff)
parent82d0c48d48fa54573d1dbdaf7a69da41d8ba87af (diff)
downloadaccel-ppp-f4a22056a221d69bf8d1aaa8eca39f276b52431d.tar.gz
accel-ppp-f4a22056a221d69bf8d1aaa8eca39f276b52431d.zip
Merge pull request #51 from cygnusb/dhcp_notify_end_option
Add missing dhcp end option on dhcp notify packet
Diffstat (limited to 'accel-pppd')
-rw-r--r--accel-pppd/ctrl/ipoe/dhcpv4.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/accel-pppd/ctrl/ipoe/dhcpv4.c b/accel-pppd/ctrl/ipoe/dhcpv4.c
index f1d9c460..a369c8a0 100644
--- a/accel-pppd/ctrl/ipoe/dhcpv4.c
+++ b/accel-pppd/ctrl/ipoe/dhcpv4.c
@@ -925,6 +925,8 @@ void dhcpv4_send_notify(struct dhcpv4_serv *serv, struct dhcpv4_packet *req, uns
dhcpv4_packet_add_opt_u8(pack, 53, DHCPDISCOVER);
dhcpv4_packet_add_opt(pack, 43, opt, sizeof(opt));
+ *pack->ptr++ = 255;
+
dhcpv4_send_raw(serv, pack, 0, INADDR_BROADCAST, DHCP_SERV_PORT);
dhcpv4_packet_free(pack);