[posix-netif] remove IFA_RT_PRIORITY definition (#7635)

`IFA_RT_PRIORITY` not defined basically means that the feature is not
present. Defining it to 9 does not make it effective.

This commit removes the `IFA_RT_PRIORITY` definition so that it would
not compile on platforms that do not support `IFA_RT_PRIORITY`.
This commit is contained in:
Simon Lin
2022-04-25 06:27:51 -07:00
committed by GitHub
parent 013ab41291
commit 4365f505f3
-4
View File
@@ -322,10 +322,6 @@ static uint8_t NetmaskToPrefixLength(const struct sockaddr_in6 *netmask)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wcast-align"
#if !defined(IFA_RT_PRIORITY)
#define IFA_RT_PRIORITY 9
#endif
void AddRtAttr(struct nlmsghdr *aHeader, uint32_t aMaxLen, uint8_t aType, const void *aData, uint8_t aLen)
{
uint8_t len = RTA_LENGTH(aLen);