ppp: Fix incorrect packet length for little-endian
authorZhenhua Zhang <zhenhua.zhang@intel.com>
Wed, 23 Jun 2010 09:46:37 +0000 (17:46 +0800)
committerDenis Kenzior <denkenz@gmail.com>
Wed, 23 Jun 2010 21:45:28 +0000 (16:45 -0500)
commit28b2c32dc7bb5eb9fe24eba40548afdfa9bffb54
treecc76b3443ab6852c60c543b3932765bccfe6580a
parent557f4cdb16b57927efd2a1eacc0379980ec3fd66
ppp: Fix incorrect packet length for little-endian

packet->length is in TCP/IP network byte order. It needs to call ntohs()
to convert to host byte order, which is little-endian.
gatchat/ppp_ipcp.c