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
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
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!