Nowadays it's not necessary to compute network mask from the IP address and compare to given by DHCP.
Details
Details
Diff Detail
Diff Detail
- Lint
Lint Skipped - Unit
Tests Skipped
Event Timeline
Comment Actions
There is an problem - not enough context. You can use arcanist, or just tell svn diff to include more {all} lines.
Comment Actions
IMO it seems to make sense, but there is the question, how much testing have you done, any class[less] tests?
Comment Actions
This revision will make BOOTP incompatible towards old classful BOOTP server. If a BOOTP server doesn't supply mask at all, you will end with zero mask.
Of course, the class mask shall not override mask supplied from server. But support for classes should remain, it doesn't hurt. So, the whole code removed should remain, but wrapped into "if (!smask) { }".
Comment Actions
This looks correct to me. But I haven't reviewed the consequences of writing directly to the "netmask", which is also shared with rarp.c and udp.c
Thanks!