inet_ifa_match confusion

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On ethernet interfaces, ifa_address == ifa_local, so this:

    inet_ifa_match(ifa->ifa_address, localip)

works fine.  But on ppp interfaces, ifa_address and ifa_local are
different, so inet_ifa_match fails when trying to verify the
local ip exists on a given interface.  Is this expected behvaiour?

I ask because I'm trying to use inet_confirm_addr to verify a ppp
interface has a given IP address, but the test always fails
because inet_ifa_match is testing against the remote IP.

Any suggestions???

Phil

-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux