bschirrmeister / docsis_server

docsis_server
GNU General Public License v2.0
19 stars 10 forks source link

Update dhcpd-options.c #7

Open londi-afk opened 2 years ago

londi-afk commented 2 years ago

Correcting an error for full read of DHCP Options in packets that use Padding - Option (0). From RFC - Pad Field (Tag: 0, Data: None) Since this Option has no length, we need to decrement ino for the next loop to have correct next option (kT) to work on in subsequent loop. This fixes problems any modems that use padding in DHCP Options for their DHCP packets. With old code this would make dhcp server ignore other Options that follow Pad.