Page MenuHomeFreeBSD

ip_mroute: Start moving globals into a structure
Needs ReviewPublic

Authored by markj on Tue, Feb 10, 10:10 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Feb 21, 1:06 AM
Unknown Object (File)
Fri, Feb 20, 6:26 PM
Unknown Object (File)
Thu, Feb 19, 12:31 AM
Unknown Object (File)
Wed, Feb 18, 6:02 AM
Unknown Object (File)
Tue, Feb 17, 9:33 AM
Unknown Object (File)
Wed, Feb 11, 8:48 AM
Unknown Object (File)
Wed, Feb 11, 7:17 AM
Unknown Object (File)
Wed, Feb 11, 6:21 AM

Details

Reviewers
None
Group Reviewers
network
Summary

I would like to support per-FIB multicast routing tables, such that one
can run a routing daemon per-FIB, with each daemon oblivious to the
existence of others. Currently the multicast routing code is completely
unaware of FIBs.

To that end, start collecting various global variables in ip_mroute.c
into a per-VNET struct mfctable. In a future patch this will be
expanded into an array of mfctable structures, one per FIB. For now,
all of the state is collected into V_mfctables[0].

Each mfctable contains, among other things:

  • a pointer to the routing socket, if routing is enabled,
  • a hash table of routing cache entries,
  • an table of network interfaces participating in the routing configuration

This change has no functional effect, it is just factoring out these
global variables to make the subsequent patches simpler.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 70599
Build 67482: arc lint + arc unit