Page MenuHomeFreeBSD

if_tuntap: minor improvements
ClosedPublic

Authored by vmaffione on Aug 17 2019, 1:12 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Jan 31, 5:16 AM
Unknown Object (File)
Sat, Jan 25, 7:18 PM
Unknown Object (File)
Jan 10 2025, 5:31 AM
Unknown Object (File)
Jan 6 2025, 11:19 PM
Unknown Object (File)
Nov 27 2024, 9:55 PM
Unknown Object (File)
Nov 2 2024, 6:19 PM
Unknown Object (File)
Oct 5 2024, 10:56 AM
Unknown Object (File)
Sep 23 2024, 9:28 AM
Subscribers

Details

Summary

Rewrite a loop to avoid duplicating the exit condition.
Simplify mask processing in tunpoll().
Fix minor typos.

Test Plan

Tested with a bhyve tap configuration on HEAD.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

vmaffione added a reviewer: markj.
markj added inline comments.
sys/net/if_tuntap.c
113

I would just rename to TUN_UNUSED1, or remove it outright.

This revision is now accepted and ready to land.Aug 19 2019, 4:14 PM
sys/net/if_tuntap.c
113

+1 for remove it

vmaffione added inline comments.
sys/net/if_tuntap.c
113

Sounds good, I'll do.

This revision was automatically updated to reflect the committed changes.