fix IPCP negotiation of secondary DNS server
This commit is contained in:
parent
0dbde0850a
commit
dad3309278
4 changed files with 6 additions and 4 deletions
3
Changes
3
Changes
|
|
@ -1,7 +1,8 @@
|
||||||
* Fri Nov 25 2005 Brendan O'Dea <bod@optus.net> 2.1.13
|
* Sun Dec 4 2005 Brendan O'Dea <bod@optus.net> 2.1.13
|
||||||
- Add test/ping-sweep.
|
- Add test/ping-sweep.
|
||||||
- Apply spec changes from Charlie Brady: use License header, change
|
- Apply spec changes from Charlie Brady: use License header, change
|
||||||
BuildRoot to include username.
|
BuildRoot to include username.
|
||||||
|
- Fix IPCP negotiation of secondary DNS server, reported by Jon Morby.
|
||||||
|
|
||||||
* Thu Nov 17 2005 Brendan O'Dea <bod@optus.net> 2.1.12
|
* Thu Nov 17 2005 Brendan O'Dea <bod@optus.net> 2.1.12
|
||||||
- Set MTU on tunnel interface so the kernel will re-fragment large
|
- Set MTU on tunnel interface so the kernel will re-fragment large
|
||||||
|
|
|
||||||
1
THANKS
1
THANKS
|
|
@ -22,3 +22,4 @@ Tim Devries <tdevries@northrock.bm>
|
||||||
Slobodan Tomic <stomic@loznica.com>
|
Slobodan Tomic <stomic@loznica.com>
|
||||||
Michael Chapman <mike.chapman@optus.net>
|
Michael Chapman <mike.chapman@optus.net>
|
||||||
Charlie Brady <charlieb@e-smith.com>
|
Charlie Brady <charlieb@e-smith.com>
|
||||||
|
Jon Morby <jon@fido.net>
|
||||||
|
|
|
||||||
|
|
@ -43,5 +43,5 @@ rm -rf %{buildroot}
|
||||||
%attr(644,root,root) /usr/share/man/man[58]/*
|
%attr(644,root,root) /usr/share/man/man[58]/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Fri Nov 25 2005 Brendan O'Dea <bod@optus.net> 2.1.13-1
|
* Sun Dec 4 2005 Brendan O'Dea <bod@optus.net> 2.1.13-1
|
||||||
- 2.1.13 release, see /usr/share/doc/l2tpns-2.1.13/Changes
|
- 2.1.13 release, see /usr/share/doc/l2tpns-2.1.13/Changes
|
||||||
|
|
|
||||||
4
ppp.c
4
ppp.c
|
|
@ -1,6 +1,6 @@
|
||||||
// L2TPNS PPP Stuff
|
// L2TPNS PPP Stuff
|
||||||
|
|
||||||
char const *cvs_id_ppp = "$Id: ppp.c,v 1.86 2005-11-17 05:24:17 bodea Exp $";
|
char const *cvs_id_ppp = "$Id: ppp.c,v 1.87 2005-12-04 13:06:50 bodea Exp $";
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
@ -1037,7 +1037,7 @@ void processipcp(sessionidt s, tunnelidt t, uint8_t *p, uint16_t l)
|
||||||
case 131: // secondary DNS
|
case 131: // secondary DNS
|
||||||
if (o[1] != 6 || o[1] > length) return;
|
if (o[1] != 6 || o[1] > length) return;
|
||||||
|
|
||||||
addr = htonl(session[s].dns1);
|
addr = htonl(session[s].dns2);
|
||||||
if (memcmp(o + 2, &addr, sizeof(addr)))
|
if (memcmp(o + 2, &addr, sizeof(addr)))
|
||||||
{
|
{
|
||||||
q = ppp_conf_nak(s, b, sizeof(b), PPPIPCP, &response, q, p, o, (uint8_t *) &addr, sizeof(addr));
|
q = ppp_conf_nak(s, b, sizeof(b), PPPIPCP, &response, q, p, o, (uint8_t *) &addr, sizeof(addr));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue