[qca-nss-clients] MAP-T over PPPOE
This patch enables MAP-T over pppoe support.
Change-Id: I00ffcd493feb10a6856d5249c8dde5629de16650
Signed-off-by: ratheesh kannoth <rkannoth@codeaurora.org>
diff --git a/map/map-t/nss_connmgr_map_t.c b/map/map-t/nss_connmgr_map_t.c
index f52e914..f8b524e 100644
--- a/map/map-t/nss_connmgr_map_t.c
+++ b/map/map-t/nss_connmgr_map_t.c
@@ -214,11 +214,11 @@
struct list_ipv6_address_entry_t *first = list_entry(a, struct list_ipv6_address_entry_t, list);
struct list_ipv6_address_entry_t *second = list_entry(b, struct list_ipv6_address_entry_t, list);
- if (first->prefix_len > second->prefix_len) {
+ if (first->prefix_len < second->prefix_len) {
return 1;
}
- if (first->prefix_len < second->prefix_len) {
+ if (first->prefix_len > second->prefix_len) {
return -1;
}
@@ -241,7 +241,7 @@
struct inet6_ifaddr *ifa;
if (!dev->type || dev->type == ARPHRD_NONE || dev->type == ARPHRD_VOID ||
- dev->type == ARPHRD_LOOPBACK) {
+ dev->type == ARPHRD_LOOPBACK || dev->type == ARPHRD_PPP) {
continue;
}