summaryrefslogtreecommitdiff
path: root/drivers/ipoe
diff options
context:
space:
mode:
authorKozlov Dmitry <xeb@mail.ru>2013-04-19 12:00:34 +0400
committerKozlov Dmitry <xeb@mail.ru>2013-04-19 12:00:34 +0400
commite003275f092bdbe8b64b3da301886d5e02218d6e (patch)
tree26e21b668e45febec52a7499b8fc3d7f34b7d99b /drivers/ipoe
parent199bd3556de16e4a92fd4e3d79ec6741c5959336 (diff)
downloadaccel-ppp-e003275f092bdbe8b64b3da301886d5e02218d6e.tar.gz
accel-ppp-e003275f092bdbe8b64b3da301886d5e02218d6e.zip
ipoe: fix local-net handling
Diffstat (limited to 'drivers/ipoe')
-rw-r--r--drivers/ipoe/ipoe.c2
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;
}