Page MenuHomeFreeBSD

Cleanup unused inpcb fields/flags
ClosedPublic

Authored by bz on Sep 6 2018, 4:34 PM.

Details

Summary

The inp_lle field to struct inpcb, along with two "valid" flags
for the rt and lle cache were added in r191129 (2009).
To my best knowledge they have never been used and route caching
has converted the inp_rt field from that commit to inp_route
rendering these fields obsolete.

Convert the pointer into a spare pointer to not change the size of
the structure anymore (and to have a spare pointer) and mark the
to fields as unused.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

This revision is now accepted and ready to land.Sep 6 2018, 6:44 PM
This revision was automatically updated to reflect the committed changes.

Since struct inpcb is no longer exported to the userland, the spare field can be removed.