Page MenuHomeFreeBSD

Use newly-created accessor function for reading rt prefix in ipfw.
AbandonedPublic

Authored by melifaro on Apr 27 2020, 10:06 PM.
Tags
None
Referenced Files
Unknown Object (File)
Dec 20 2023, 5:24 AM
Unknown Object (File)
Dec 20 2022, 4:21 AM
Subscribers

Details

Reviewers
ae
Group Reviewers
network
Summary

One of the goals of the new routing KPI defined in r359823 is to entirely hide`struct rtentry` from the consumers. It will allow to improve routing subsystem internals and deliver more features much faster.

This change is one of the final changes eliminating direct access to the struct rtentry fields.

In particular, it introduces new rt_export_prefix() function, exporting rtentry destination as sockaddr and mask as prefix length.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 31421
Build 29040: arc lint + arc unit