Skip to content

bgp: Add composable wrappers for {get,set}sockopt - #900

Open
taspelund wants to merge 1 commit into
jj-stack/falcon-lab-add-focused-bgp-md5-regression-lvopsxpzfrom
jj-stack/bgp-add-composable-wrappers-for-get-set-sockopt-xqyysnkr
Open

bgp: Add composable wrappers for {get,set}sockopt#900
taspelund wants to merge 1 commit into
jj-stack/falcon-lab-add-focused-bgp-md5-regression-lvopsxpzfrom
jj-stack/bgp-add-composable-wrappers-for-get-set-sockopt-xqyysnkr

Conversation

@taspelund

Copy link
Copy Markdown
Contributor

Instead of jamming unsafe calls to libc::{get,set}sockopt, centralize it to just one wrapper for each method and use option-specific wrappers.

Also fix incorrect sockopt name for IPv6 TTL: IP_MINTTL -> IPV6_MINHOPCOUNT

Fixes: #647

Signed-off-by: Trey Aspelund trey@oxidecomputer.com

@taspelund

taspelund commented Sep 2, 2026

Copy link
Copy Markdown
Contributor Author

Revision history

Version Changes from previous version Submitted commit
6 (current) d1ff6f09..1abfb305 1abfb305
5 109cc76a..d1ff6f09 d1ff6f09
4 0bf3422a..109cc76a 109cc76a
3 9d83e294..0bf3422a 0bf3422a
2 543da50b..9d83e294 9d83e294
1 Initial version 543da50b

Generated by jj-stack from this pull request's force-push history.

@taspelund
taspelund force-pushed the jj-stack/bgp-add-composable-wrappers-for-get-set-sockopt-xqyysnkr branch from 543da50 to 9d83e29 Compare September 2, 2026 19:20
@taspelund
taspelund force-pushed the jj-stack/bgp-add-composable-wrappers-for-get-set-sockopt-xqyysnkr branch 2 times, most recently from 0bf3422 to 109cc76 Compare September 2, 2026 20:40
@taspelund taspelund self-assigned this Sep 2, 2026
@taspelund taspelund added bgp Border Gateway Protocol mgd Maghemite daemon rust Pull requests that update rust code labels Sep 2, 2026
@taspelund
taspelund force-pushed the jj-stack/bgp-add-composable-wrappers-for-get-set-sockopt-xqyysnkr branch from 109cc76 to d1ff6f0 Compare September 3, 2026 21:18
Instead of jamming unsafe calls to libc::{get,set}sockopt, centralize it
to just one wrapper for each method and use option-specific wrappers.

Also fix incorrect sockopt name for IPv6 TTL:
IP_MINTTL -> IPV6_MINHOPCOUNT

Fixes: #647

Signed-off-by: Trey Aspelund <trey@oxidecomputer.com>
@taspelund
taspelund force-pushed the jj-stack/bgp-add-composable-wrappers-for-get-set-sockopt-xqyysnkr branch from d1ff6f0 to 1abfb30 Compare September 4, 2026 21:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bgp Border Gateway Protocol mgd Maghemite daemon rust Pull requests that update rust code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TTL settings are broken for IPv6 peers

1 participant