]>
git.ipfire.org Git - thirdparty/systemd.git/blob - src/basic/arphrd-list.c
1 /* SPDX-License-Identifier: LGPL-2.1-or-later */
4 #include <linux/if_arp.h>
7 #include "arphrd-list.h"
10 static const struct arphrd_name
* lookup_arphrd(register const char *str
, register GPERF_LEN_TYPE len
);
12 #include "arphrd-from-name.h"
13 #include "arphrd-to-name.h"
15 int arphrd_from_name(const char *name
) {
16 const struct arphrd_name
*sc
;
20 sc
= lookup_arphrd(name
, strlen(name
));