mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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:
parent
57fcf46dee
commit
200fe6e3a0
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue