1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-30 00:00:16 +01:00
libwebsockets/lib
Andy Green d7ac7f4deb unix domain: fix path name length
Unlike any other sockaddr variant it turns out when sockaddr_un reports its
sizeof() to connect() or listen(), it is trimmed to the used length of the
sun_path[] member not including any trailing 0x00.

Until now we worked fine, but our actual UDS paths have a large number of
trailing 0x00 (shown as @ in most tools).  Clients and servers can still
interoperate if they both have this broken name.

This patch fixes it to trim the sockaddr_un to the path length so the name
is as you would expect.
2020-05-27 08:40:12 +01:00
..
abstract cleaning 2020-01-05 22:17:58 +00:00
core ws: remove now unused ws_ping_pong_interval 2020-05-27 08:40:12 +01:00
core-net unix domain: fix path name length 2020-05-27 08:40:12 +01:00
event-libs libev: fix destroy path and example typo 2020-05-27 08:40:12 +01:00
jose lejp: correct return temp type to int 2020-05-11 15:17:14 +01:00
misc lejp: support outer element is array 2020-05-11 21:20:29 +01:00
plat win: deal with FD_CONNECT better 2020-05-27 08:40:12 +01:00
roles unix domain: fix path name length 2020-05-27 08:40:12 +01:00
secure-streams ss: make sure to use LWS_WRITE_HTTP_FINAL with SS EOM flag 2020-05-27 08:40:12 +01:00
system ntpclient: add plat-specific init with env var LWS_NTP_SERVER able to set it on unix and windows 2020-04-25 15:11:21 +01:00
tls CTest: migrate and deprecate existing selftest scripts 2020-05-11 15:40:13 +01:00
README.md cleaning 2020-01-05 22:17:58 +00:00

Library sources layout

Code that goes in the libwebsockets library itself lives down ./lib

Path Sources
lib/core Core lws code related to generic fd and wsi servicing and management
lib/core-net Core lws code that applies only if networking enabled
lib/event-libs Code containing optional event-lib specific adaptations
lib/jose JOSE / JWS / JWK / JWE implementations
lib/misc Code for various mostly optional miscellaneous features
lib/plat Platform-specific adaptation code
lib/roles Code for specific optional wsi roles, eg, http/1, h2, ws, raw, etc
lib/system Code for system-level features, eg, dhcpclient
lib/tls Code supporting the various TLS libraries