summaryrefslogtreecommitdiff
path: root/kernel/driver
diff options
context:
space:
mode:
authorDenys Fedoryshchenko <denys.f@collabora.com>2026-07-06 10:12:48 +0300
committerDenys Fedoryshchenko <denys.f@collabora.com>2026-07-06 10:18:10 +0300
commitf1e2e1555dc1c0b2be45192bdd75128e37337cfb (patch)
treeabef2081c0121ac7cc3395ee74fce0d1e2fb4a56 /kernel/driver
parent06f64b19a123d623438b95b5e6da00f4bf4ce9c1 (diff)
downloadaccel-ppp-f1e2e1555dc1c0b2be45192bdd75128e37337cfb.tar.gz
accel-ppp-f1e2e1555dc1c0b2be45192bdd75128e37337cfb.zip
cli: proper ipv6 support for cli interface
We had several flaws on server side that was breaking ipv6 cli support. accel-pppd/cli/cli_p.h — three shared helpers used by both listeners: cli_parse_hostport() (accepts host:port, [ipv6]:port, bare ::1:port via last-colon split, and :port for wildcard), cli_bind_addr() (builds an IPv4 or IPv6 sockaddr, modeled on the existing SSTP pattern), and cli_addr_str() (formats peer addresses for logging, including v4-mapped). accel-pppd/cli/tcp.c and telnet.c — listeners now create a socket of whichever family the configured address is; client address storage switched from sockaddr_in to sockaddr_storage so connection logging prints IPv6 peers correctly. An invalid address now logs an error instead of silently binding garbage (previously inet_addr() failure went unchecked). Also fixed a pre-existing quirk where the fd itself was passed as the SO_REUSEADDR option value. accel-pppd/accel-ppp.conf.5 — documented the new [::1]:2000 syntax and [::]:port for the IPv6 wildcard. Might fix: https://github.com/accel-ppp/accel-ppp/issues/317 Signed-off-by: Denys Fedoryshchenko <denys.f@collabora.com>
Diffstat (limited to 'kernel/driver')
0 files changed, 0 insertions, 0 deletions