Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] - Contacts, etc. #2242

Draft
wants to merge 41 commits into
base: quic-wip
Choose a base branch
from
Draft

[WIP] - Contacts, etc. #2242

wants to merge 41 commits into from

Conversation

dr7ana
Copy link
Collaborator

@dr7ana dr7ana commented Oct 22, 2024

No description provided.

@dr7ana dr7ana self-assigned this Oct 22, 2024
@dr7ana dr7ana force-pushed the contacts branch 2 times, most recently from bfd6006 to f6376b4 Compare October 25, 2024 16:40
- DRYing out message serialization across path message types
@dr7ana dr7ana force-pushed the contacts branch 3 times, most recently from 2b0f8d3 to 7d3df28 Compare October 28, 2024 22:14
@dr7ana dr7ana force-pushed the contacts branch 4 times, most recently from ac8feb1 to e910b2d Compare October 29, 2024 21:58
- path mapping fundamentally changed in path_handler and path_context to be correctly 1:1 with upstream RX
- concepts of "is_relayed" and "relay_order" made redundant by relay full mesh
With this in the config:

    [bind]
    listen=144.76.164.202:1666

I was getting a failure during config parsing:

    Dec 04 16:00:21 fenrir lokinet[2480391]: [2024-12-04 20:00:21] [+0.000s] [config:critical|/home/testnet/lokinet/llarp/config/config.cpp:1232] Parsing input: 144.76.164.202:1666
    Dec 04 16:00:21 fenrir lokinet[2480391]: [2024-12-04 20:00:21] [+0.000s] [config:critical|/home/testnet/lokinet/llarp/config/config.cpp:1234] Parsed input =
    Dec 04 16:00:21 fenrir lokinet[2480391]: [1B blob data]
    Dec 04 16:00:21 fenrir lokinet[2480391]: :1666

which turned out to be that we had a string view viewing a temporary
std::string.  This fixes it.

Also removes a counterproductive `static` from inlined header methods
around addr parsing.  (Having a `static` free function forces a distinct
copy of the function to exist for every compilation unit that uses the
function *without* linkage of those functions, while plain `inline`
still compiles separate copies where used, but allows the linker to
deduplicate them when linking the final binary).
@dr7ana dr7ana force-pushed the contacts branch 3 times, most recently from 2bdac61 to 36a5e57 Compare December 7, 2024 22:29
@dr7ana dr7ana force-pushed the contacts branch 10 times, most recently from 836933a to ac210c3 Compare December 9, 2024 22:01
@dr7ana dr7ana force-pushed the contacts branch 2 times, most recently from bdab0cf to 1f0f053 Compare January 13, 2025 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants