Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-doc
Path: blob/main/website/content/en/status/report-2025-01-2025-03/ipv6-support-on-ng_ksocket.adoc
18096 views
=== IPv6 Support on ksocket Netgraph Module

Links: +
link:https://reviews.freebsd.org/D48204[Add IPv6 support for address parsing and unparsing in ng_ksocket] URL: link:https://reviews.freebsd.org/D48204[]

Contact: Seyed Pouria Mousavizadeh Tehrani <[email protected]>

Support for IPv6 has been added to the man:ng_ksocket[4] module.

The `ng_ksocket` node type allows users to open a socket inside the kernel and have it appear as a `netgraph` node.
While attempting to export traffic flow using man:ng_netflow[4], I recognized the need for IPv6 implementation within the `ng_ksocket` module.

There was a previous attempt to add IPv6 support to the `ng_ksocket` module (see Phabricator review link:https://reviews.freebsd.org/D23788[D23788]).

After looking into those changes, I decided to complete the efforts and also add validation to comply with standards.

The result is now available as an link:https://reviews.freebsd.org/D48204[updated review on Phabricator].

Now, we can create IPv6 sockets using the ksocket module directly within the `netgraph` framework.
After my changes, I was able to export my traffic flows directly using `netgraph` without the need to enable IPv4 on my network links.