diff options
author | devonh <devon.dmytro@gmail.com> | 2022-09-29 16:05:16 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-29 16:05:16 +0000 |
commit | 90f1985bf30ac9f79ef5a0c7ae8406aca904aaad (patch) | |
tree | 866cc2cbb56047532d06b6dc31c50b85aec5cba4 /build | |
parent | b28bbadeb02978634e7d91844568a6b09b79e53b (diff) |
Add network interface registration to pinecone demo (#2750)
### Pull Request Checklist
<!-- Please read docs/CONTRIBUTING.md before submitting your pull
request -->
No additional tests have been added as this simply extends the API for
the embedded pinecone demo.
Signed-off-by: `Devon Hudson <devonhudson@librem.one>`
Diffstat (limited to 'build')
-rw-r--r-- | build/gobind-pinecone/monolith.go | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/build/gobind-pinecone/monolith.go b/build/gobind-pinecone/monolith.go index 5b368a99..b0d3fa28 100644 --- a/build/gobind-pinecone/monolith.go +++ b/build/gobind-pinecone/monolith.go @@ -101,6 +101,20 @@ func (m *DendriteMonolith) SessionCount() int { return len(m.PineconeQUIC.Protocol("matrix").Sessions()) } +func (m *DendriteMonolith) RegisterNetworkInterface(name string, index int, mtu int, up bool, broadcast bool, loopback bool, pointToPoint bool, multicast bool, addrs string) { + m.PineconeMulticast.RegisterInterface(pineconeMulticast.InterfaceInfo{ + Name: name, + Index: index, + Mtu: mtu, + Up: up, + Broadcast: broadcast, + Loopback: loopback, + PointToPoint: pointToPoint, + Multicast: multicast, + Addrs: addrs, + }) +} + func (m *DendriteMonolith) SetMulticastEnabled(enabled bool) { if enabled { m.PineconeMulticast.Start() |