[PATCH] net: add more sockopt options

Dmitry V. Levin ldv at altlinux.org
Mon Feb 17 15:08:52 UTC 2014


On Mon, Feb 17, 2014 at 03:18:44AM -0500, Mike Frysinger wrote:
> On Monday, February 17, 2014 02:51:17 Dmitry V. Levin wrote:
[...]
> > > +	echo "const struct xlat ${name}[] = {"
> > 
> > static?
> 
> i started with that, but not all xlat's are static like addrfams :(.  but i 
> didn't want to try extending the file format too much to support this as then 
> we'd have this giant ad-hoc mess.  any suggestions on any semi-existing 
> standards/structured file formats to use ?

No, your simple lists are better than any structured file formats.
We can differentiate global vs static using a name prefix.  For example,
in files whose names start with "global-" prefix, xlat structures could be
defined with global visibility, and all the rest - static.


-- 
ldv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20140217/3cb9c3d9/attachment.bin>


More information about the Strace-devel mailing list