]> granicus.if.org Git - strace/commit
Leverage the fact that inet_protocols xlat is sorted
authorEugene Syromyatnikov <evgsyr@gmail.com>
Wed, 23 May 2018 16:48:26 +0000 (18:48 +0200)
committerDmitry V. Levin <ldv@altlinux.org>
Tue, 5 Jun 2018 11:04:09 +0000 (11:04 +0000)
commit27850e48f360f45578d1d6e09a07516580594198
treeb3d0c23fee658a49523d1aa6de5f4f911b8fa2ed
parente390ab2427b8c2ebfb3f24c43de2ee4e06b91845
Leverage the fact that inet_protocols xlat is sorted

* defs.h (inet_protocols): Move up, add description.
(inet_protocols_size): New declaration.
* net.c (inet_protocols_size): New constant variable.
* nlattr.c (decode_nla_ip_proto): Specify xlat_size, set xt to XT_SORTED.
defs.h
net.c
nlattr.c