Page MenuHomeFreeBSD

ng_ksocket: Add tests for IPv6
ClosedPublic

Authored by p.mousavizadeh_protonmail.com on May 2 2025, 12:19 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Aug 20, 11:46 PM
Unknown Object (File)
Mon, Aug 18, 6:00 PM
Unknown Object (File)
Wed, Aug 6, 4:18 PM
Unknown Object (File)
Sat, Aug 2, 7:54 AM
Unknown Object (File)
Jul 29 2025, 8:05 AM
Unknown Object (File)
Jul 29 2025, 3:12 AM
Unknown Object (File)
Jul 29 2025, 12:31 AM
Unknown Object (File)
Jul 28 2025, 3:43 PM

Details

Summary

Add udp6_connect and udp6_bind for ng_ksocket

Test Plan

kyua test -k /usr/tests/Kyuafile sys/netgraph/ksocket
sys/netgraph/ksocket:udp6_bind -> passed [0.002s]
sys/netgraph/ksocket:udp6_connect -> passed [0.002s]
sys/netgraph/ksocket:udp_bind -> passed [0.002s]
sys/netgraph/ksocket:udp_connect -> passed [0.002s]

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 64236
Build 61120: arc lint + arc unit

Event Timeline

This is my first experience with ATF and kyua. I would appreciate any guidance or suggestions you might have.

ivy added a subscriber: ivy.

the submitter asked me to land this. the changes look basically fine and match the existing IPv4 tests (and the new tests pass), but i don't know enough about netgraph to review this properly.

tests/sys/netgraph/ksocket.c
122

per style(9), variable definitions should be at the start of the function, although since the rest of the file already violates this guideline it might make more sense to match the existing code.

tests/sys/netgraph/ksocket.c
122

I could rewrite it based on style(9), if you think it's more appropriate.

des requested changes to this revision.May 16 2025, 8:33 PM
des added inline comments.
tests/sys/netgraph/ksocket.c
122

Please move the definition (and initialization) of mkp to right below that of sa in all test cases, the rest is fine.

This revision now requires changes to proceed.May 16 2025, 8:33 PM
p.mousavizadeh_protonmail.com added inline comments.
tests/sys/netgraph/ksocket.c
122

Order of use applied for connect functions by moving mkp to right below of sa and also moving mkp of bind functions right above of sin.

@p.mousavizadeh_protonmail.com i intend to land this for you but it needs a review from at least des or kevans first which might not happen until next week, i'll try to keep up but if you think it's stalled feel free to ping me.

ping @ivy
it seems like the review process has stalled. I appreciate your help in getting this moving again.
Thank you!

This revision is now accepted and ready to land.Jun 25 2025, 7:24 AM
This revision was automatically updated to reflect the committed changes.