Do not send non-needed AVPs in SCCCN
This commit is contained in:
parent
81f807eba0
commit
e9c8c172b9
1 changed files with 5 additions and 5 deletions
10
l2tpns.c
10
l2tpns.c
|
|
@ -4884,12 +4884,12 @@ void processudp(uint8_t *buf, int len, struct sockaddr_in *addr, uint16_t indexu
|
||||||
create_kernel_tunnel(t, tunnel[t].far);
|
create_kernel_tunnel(t, tunnel[t].far);
|
||||||
LOG(3, s, t, "sending SCCCN to REMOTE LNS\n");
|
LOG(3, s, t, "sending SCCCN to REMOTE LNS\n");
|
||||||
controlt *c = controlnew(3); // sending SCCCN
|
controlt *c = controlnew(3); // sending SCCCN
|
||||||
controls(c, 7, config->multi_n_hostname[tunnel[t].indexudp][0]?config->multi_n_hostname[tunnel[t].indexudp]:hostname, 1); // host name
|
//controls(c, 7, config->multi_n_hostname[tunnel[t].indexudp][0]?config->multi_n_hostname[tunnel[t].indexudp]:hostname, 1); // host name
|
||||||
controls(c, 8, Vendor_name, 0); // Vendor name
|
//controls(c, 8, Vendor_name, 0); // Vendor name
|
||||||
control16(c, 2, version, 1); // protocol version
|
//control16(c, 2, version, 1); // protocol version
|
||||||
control32(c, 3, 3, 1); // framing Capabilities
|
//control32(c, 3, 3, 1); // framing Capabilities
|
||||||
if (sendchalresponse) controlb(c, 13, sendchalresponse, 16, 1); // Challenge response
|
if (sendchalresponse) controlb(c, 13, sendchalresponse, 16, 1); // Challenge response
|
||||||
control16(c, 9, t, 1); // assigned tunnel
|
//control16(c, 9, t, 1); // assigned tunnel
|
||||||
tunn_local[t].scccn = controladd(c, 0, t); // send
|
tunn_local[t].scccn = controladd(c, 0, t); // send
|
||||||
LOG(3, s, t, "sent SCCCN as %d\n", tunn_local[t].scccn);
|
LOG(3, s, t, "sent SCCCN as %d\n", tunn_local[t].scccn);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue