From: Benjamin Cama Date: Thu, 15 Sep 2011 14:48:32 +0000 (+0200) Subject: Correctly set mp_epdis in host order. X-Git-Tag: debian/2.2.1-1fdn2~1^2 X-Git-Url: http://git.sameswireless.fr/l2tpns.git/commitdiff_plain/6b54e4985e16ba807172532e1341ccd922f81260?ds=inline;hp=-c Correctly set mp_epdis in host order. Signed-off-by: Benjamin Cama --- 6b54e4985e16ba807172532e1341ccd922f81260 diff --git a/l2tpns.c b/l2tpns.c index ae7f3f4..90ac930 100644 --- a/l2tpns.c +++ b/l2tpns.c @@ -2959,7 +2959,7 @@ void processudp(uint8_t *buf, int len, struct sockaddr_in *addr) // Set multilink options before sending initial LCP packet sess_local[s].mp_mrru = 1614; - sess_local[s].mp_epdis = config->bind_address ? config->bind_address : my_address; + sess_local[s].mp_epdis = ntohl(config->bind_address ? config->bind_address : my_address); sendlcp(s, t); change_state(s, lcp, RequestSent);