diff options
author | Dmitry Kozlov <xeb@mail.ru> | 2016-03-19 20:30:49 +0300 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2016-03-19 20:30:49 +0300 |
commit | 3c07b3ea7659bd462ebf2bd946b5fcd10add7757 (patch) | |
tree | 6574c487fa4370ed87dcb041933bd13520903cab | |
parent | 64e5c04c0d9aa4b46235c5f0da45d22abf9cce1c (diff) | |
download | accel-ppp-3c07b3ea7659bd462ebf2bd946b5fcd10add7757.tar.gz accel-ppp-3c07b3ea7659bd462ebf2bd946b5fcd10add7757.zip |
ipoe: bug fix
-rw-r--r-- | accel-pppd/ctrl/ipoe/ipoe_netlink.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/accel-pppd/ctrl/ipoe/ipoe_netlink.c b/accel-pppd/ctrl/ipoe/ipoe_netlink.c index 8ed4d91f..05ece5c4 100644 --- a/accel-pppd/ctrl/ipoe/ipoe_netlink.c +++ b/accel-pppd/ctrl/ipoe/ipoe_netlink.c @@ -494,7 +494,7 @@ static void ipoe_up_handler(const struct sockaddr_nl *addr, struct nlmsghdr *h) arph = (struct _arphdr *)(RTA_DATA(tb2[IPOE_ATTR_ARP_HDR])); iph = NULL; eth = NULL; - } else if (tb2[IPOE_ATTR_ETH_HDR] && !tb2[IPOE_ATTR_IP_HDR]) { + } else if (tb2[IPOE_ATTR_ETH_HDR] && tb2[IPOE_ATTR_IP_HDR]) { iph = (struct iphdr *)(RTA_DATA(tb2[IPOE_ATTR_IP_HDR])); eth = (struct ethhdr *)(RTA_DATA(tb2[IPOE_ATTR_ETH_HDR])); arph = NULL; |