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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user