linux(4): Use predefined constant instead of hardcoded value

Reviewed by:		melifaro
Differential Revision:	https://reviews.freebsd.org/D38713
MFC after:		3 days
This commit is contained in:
Dmitry Chagin 2023-02-23 10:59:34 +03:00
parent 57fcf46dee
commit 200fe6e3a0

View File

@ -302,7 +302,7 @@ rtnl_newlink_to_linux(struct nlmsghdr *hdr, struct nlpcb *nlp,
/* Convert interface type */
switch (ifinfo->ifi_type) {
case IFT_ETHER:
ifinfo->ifi_type = 1; // ARPHRD_ETHER
ifinfo->ifi_type = LINUX_ARPHRD_ETHER;
break;
}
ifinfo->ifi_flags = rtnl_if_flags_to_linux(ifinfo->ifi_flags);