diff options
author | Kozlov Dmitry <xeb@mail.ru> | 2013-04-19 12:00:34 +0400 |
---|---|---|
committer | Kozlov Dmitry <xeb@mail.ru> | 2013-04-19 12:00:34 +0400 |
commit | e003275f092bdbe8b64b3da301886d5e02218d6e (patch) | |
tree | 26e21b668e45febec52a7499b8fc3d7f34b7d99b /drivers/ipoe | |
parent | 199bd3556de16e4a92fd4e3d79ec6741c5959336 (diff) | |
download | accel-ppp-e003275f092bdbe8b64b3da301886d5e02218d6e.tar.gz accel-ppp-e003275f092bdbe8b64b3da301886d5e02218d6e.zip |
ipoe: fix local-net handling
Diffstat (limited to 'drivers/ipoe')
-rw-r--r-- | drivers/ipoe/ipoe.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ipoe/ipoe.c b/drivers/ipoe/ipoe.c index 54cb217..6fe13f8 100644 --- a/drivers/ipoe/ipoe.c +++ b/drivers/ipoe/ipoe.c @@ -155,7 +155,7 @@ static int ipoe_check_network(__be32 addr) rcu_read_lock(); list_for_each_entry_rcu(n, &ipoe_networks, entry) { - if ((addr & n->mask) == n->addr) { + if ((ntohl(addr) & n->mask) == n->addr) { r = 1; break; } |