Page MenuHomeFreeBSD

netgraph: increase size of sockaddr_ng to match maximum node name
ClosedPublic

Authored by glebius on Nov 21 2023, 1:28 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Jan 2, 8:23 PM
Unknown Object (File)
Wed, Dec 25, 10:10 AM
Unknown Object (File)
Fri, Dec 20, 3:50 PM
Unknown Object (File)
Oct 23 2024, 10:43 AM
Unknown Object (File)
Oct 3 2024, 12:31 PM
Unknown Object (File)
Oct 2 2024, 5:12 PM
Unknown Object (File)
Sep 30 2024, 9:47 AM
Unknown Object (File)
Sep 29 2024, 8:00 PM
Subscribers

Details

Summary

The ng_socket(4) node already writes more than declared size of the
struct at least in the in ng_getsockaddr(). Make size match size of
a node name. The value is pasted instead of including ng_message.h
into ng_socket.h. This is external API and we want to keep it stable
even if NG_NODESIZ is redefined in a kernel build.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable