[Differential] D48204: Add IPv6 support for address parsing and unparsing in ng_ksocket.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 26 Dec 2024 20:27:25 UTC
p.mousavizadeh_protonmail.com created this revision. p.mousavizadeh_protonmail.com added reviewers: manpages, network. p.mousavizadeh_protonmail.com added a project: network. Herald added subscribers: glebius, melifaro, donner, imp. p.mousavizadeh_protonmail.com requested review of this revision. REVISION SUMMARY Add IPv6 support for address parsing and unparsing in ng_ksocket. - Fix issues related to D23788 <https://reviews.freebsd.org/D23788>. - Validate square brackets as a requirement. (src, man) Co-authored by: Neel Chauhan <neel AT neelc DOT org> Note: Phabricator won't let me use the update diff function from the original revision. TEST PLAN Here is my current netflow export configuration and it works: kldstat -qm ng_netflow || kldload ng_netflow kldstat -qm ng_ether || kldload ng_ether kldload ./ng_ksocket.ko ngctl mkpeer vtnet0: netflow lower iface0 ngctl name vtnet0:lower netflow ngctl connect vtnet0: netflow: upper out0 ngctl mkpeer netflow: ksocket export9 inet6/dgram/udp6 ngctl name netflow:export9 ngk ngctl msg ngk: connect inet6/[fdb5:c59b:114e:8db4::1]:4444 I have tested this for tcp6 protocol, msg bind, and link-local with [fe80::1%vtnet0]:4444. REPOSITORY rG FreeBSD src repository REVISION DETAIL https://reviews.freebsd.org/D48204 AFFECTED FILES share/man/man4/ng_ksocket.4 sys/netgraph/ng_ksocket.c EMAIL PREFERENCES https://reviews.freebsd.org/settings/panel/emailpreferences/ To: p.mousavizadeh_protonmail.com, #manpages, #network Cc: imp, nc, donner, freebsd-net-list, melifaro, glebius, #src_committers, p.mousavizadeh_protonmail.com, ghislain_smartix.llc, konrad.kreciwilk_korbank.pl, cmiller_netapp.com, rajeshasp, mmacy, kpraveen.lkml_gmail.com, chris_cretaforce.gr, simonvella_gmail.com, novice_techie.com, herbert_mailbox.org, tommi.pernila_iki.fi, zec, delphij, pstef