Skip to contentSkip to conversation

-otrans=tcp with IPv6 address?

DISCUSSION Joshua Murphy 2 participants 3 messages Jan 14, 2025 – Jan 15, 2025 9P file system

lore
Share & tools
lore
#0 lore raw

It seems like it isn’t currently possible to mount using an IPv6 address and -otrans=tcp.

I think the issue is in p9_fd_create_tcp in net/9p/trans_fd.c as it only validates IPv4 addresses and returns EINVAL otherwise.

Thanks,

Signature · 2 lines
Joshua Murphy
[email protected]
#1 lore raw

Joshua Murphy wrote on Tue, Jan 14, 2025 at 09:01:04PM +0000:

Quoted 2 lines

It seems like it isn’t currently possible to mount using an IPv6 address and -otrans=tcp.

Right, the current workaround is to open a socket before calling mount and pass that socket with trans=fd

Quoted 2 lines

I think the issue is in p9_fd_create_tcp in net/9p/trans_fd.c as it only validates IPv4 addresses and returns EINVAL otherwise.

I haven't had time to do anything about this for ages, but patches are welcome!

Signature · 1 line
Dominique Martinet | Asmadeus
#2 lore raw
Quoted 2 lines

I haven't had time to do anything about this for ages, but patches are welcome!

I haven’t done kernel development before, but I’ll see if I can put something together.

--
Joshua Murphy
[email protected]