Correctly set mp_epdis in host order.
Signed-off-by: Benjamin Cama <benoar@dolka.fr>
This commit is contained in:
parent
5382473b0e
commit
6b54e4985e
1 changed files with 1 additions and 1 deletions
2
l2tpns.c
2
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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue