summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp
Commit message (Collapse)AuthorAgeFilesLines
* Send RADIUS gigaword data when OctetsIn or OctetsOut go over UINT32_MAX.dds2004-05-191-2/+5
| | | | | | PR: bin/61294 Submitted by: Boris Kovalenko MFC after: 3 weeks
* Make getprotobynumber() calls in FilterCheck conditional on the logdds2004-05-131-13/+43
| | | | | | | | | | | | | | | | | | | | | | levels by which they are used. On a typical production setting (no debug or filter logging) this will save an open/read/close system call sequence per packet, approximately halving the system overhead and reducing the overall overhead by 38%. dd bs=1k count=512 if=/usr/share/dict/web2 | ssh ppp-linked-host dd of=/dev/null # time original-ppp -nat -foreground connection Working in foreground mode Using interface: tun0 2.822u 2.404s 2:00.31 4.3% 392+496k 8+18io 3pf+0w # time new-ppp -nat -foreground connection Working in foreground mode Using interface: tun0 2.082u 1.173s 1:26.06 3.7% 379+450k 0+18io 0pf+0w MFC after: 3 weeks
* Add a missing memcpy (*blush*!)brian2004-04-171-4/+8
| | | | | Suggested by: James P Scully <scully@CS.Arizona.EDU>, Perianayagam Somasundaram <somu@CS.Arizona.EDU> MFC after: 10 days
* 2 small typos.charnier2004-04-041-2/+2
|
* Use the length of the interface name, not the length of its address whenbrooks2004-01-211-1/+1
| | | | | | printing the name. Approved by: brian
* Xref the proper manual pages.trhodes2004-01-121-3/+3
| | | | | PR: 60999 Submitted by: Marc Silver <marcs@draenor.org>
* Replace all uses of the old netgraph constants NG_*LEN by the newharti2003-11-152-11/+11
| | | | | | constants NG_*SIZ that include the trailing NUL byte. This change is mostly mechanical except for the replacement of a couple of snprintf() and sprintf() calls with strlcpy.
* Ignore case when comparing CHAP/CHAP81 responsesbrian2003-11-101-7/+12
| | | | PR: 31771
* Basic PAM authentication support.ru2003-10-292-0/+56
|
* Add Cisco Skinny Station protocol support to libalias, natd, and ppp.marcus2003-09-234-0/+34
| | | | | | | | | | | | | | | Skinny is the protocol used by Cisco IP phones to talk to Cisco Call Managers. With this code, one can use a Cisco IP phone behind a FreeBSD NAT gateway. Currently, having the Call Manager behind the NAT gateway is not supported. More information on enabling Skinny support in libalias, natd, and ppp can be found in those applications' manpages. PR: 55843 Reviewed by: ru Approved by: ru MFC after: 30 days
* Hide more crypto from being crunched at release time.markm2003-07-241-1/+1
|
* Don't check for the existance of src/crypto/ for building items thatmarkm2003-07-241-1/+1
| | | | | may contain crypto. The days of ITAR paranoia are over, and the simple macro tests that remain are sufficient.
* name union.ume2003-06-282-8/+10
|
* Remove world read bit from the ppp binary; we don't do world-execute,rwatson2003-06-231-2/+2
| | | | | | | so it was inconsistent (although probably not harmful) to have world-read. Submitted by: Socketd <db@traceroute.dk>
* Though manpage says that 0.0.0.0 can be used as HISADDR for gwume2003-06-211-2/+4
| | | | | | | in Framed-Route, it didn't work. Since ncprange_aton() treats 0.0.0.0 and :: as prefixlen=0, we need to care the case. MFC after: 1 week
* Mention the use of Framed-IPv6-Prefix.ume2003-06-201-0/+4
| | | | MFC after: 1 week
* IPV6PREFIX is set when Framed-IPv6-Prefix is defined, You mayume2003-06-203-0/+65
| | | | | | | want to pass the value to upper layer protocol such as DHCPv6 for prefix delegation. MFC after: 1 week
* Mention the use of Framed-IPv6-Route.ume2003-06-201-0/+46
| | | | MFC after: 1 week
* Do RADIUS accounting on IPV6CP.ume2003-06-195-18/+110
| | | | MFC after: 1 week
* Oops, I put unused variable in my previous commit.ume2003-06-191-1/+0
| | | | MFC after: 1 week
* Install routes specified by Framed-IPv6-Route. Since the formatume2003-06-193-1/+71
| | | | | | of Framed-IPv6-Route is user defined, it follows Framed-IP-route. MFC after: 1 week
* MYADDR6 in ppp.link{up,down} should match even when IPCP is enabled.ume2003-06-161-24/+20
| | | | MFC after: 1 week
* Add missing header for system_Select() prototypekris2003-06-121-0/+1
|
* Add a pretty cheesy hack to avoid a gcc-3.2.2 ICE (internal compilerpeter2003-05-251-3/+3
| | | | | | | | error) on amd64 when doing pointer subtraction. This bug is already fixed in gcc-3.3 (waiting for after the branch), and the hack will be backed out at the first opportunity. This is in the ipv6 code path. Approved by: re (scottl)
* Erase whitespace at EOL.ru2003-05-221-3/+3
| | | | Approved by: re (blanket)
* Previous revision broke release building, unbreak it.ru2003-05-201-0/+1
| | | | Prodded by: scottl
* Retire the useless NOSECURE knob.des2003-05-191-2/+1
| | | | Approved by: re (scottl)
* When session is over, IPv6 default route to tun should beume2003-04-051-1/+4
| | | | | | removed, too. MFC after: 1 week
* Set link-local address of tun interface with prefixlen = 64ume2003-04-042-8/+8
| | | | | | | | | instead of 128. It makes RA happy. Reported by: rafa@dif.um.es, SHIRASAKI Yasuhiro <yasuhiro@nttv6.jp> Reviewed by: SHIRASAKI Yasuhiro <yasuhiro@nttv6.jp> MFC after: 1 week
* If IPCP is disabled, susccess of IPV6CP negotiation is sufficientume2003-03-281-0/+5
| | | | | to communicate by IPv6. So, the prompt should be `PPP' rather than `PPp'.
* Don't install wrong IPv6 route by add command.ume2003-03-262-3/+12
|
* Passing a u_char to ntohs() is guaranteed to give the wrong answer !brian2003-03-261-2/+2
| | | | Submitted by: Francis Dupont <Francis.Dupont@enst-bretagne.fr>
* Add a ``force-scripts'' option for using chat scripts with -direct andbrian2003-03-264-20/+40
| | | | | | -dedicated links. Submitted by: Maksim Yevmenkin <myevmenk@exodus.net>
* Once ppp session is over, the route to ff02::tun0/32 wasume2003-03-251-1/+12
| | | | | deleted, and never came back. Now, the route to ff02::tun0/32 is installed at the end of IPV6CP negitiaton.
* We need filling scopeid to install routes for link-localume2003-03-251-0/+24
| | | | scope addresses.
* Since ppp.link{up,down} is invoked at the end of IPCP negotiation, ifume2003-03-251-2/+32
| | | | | | we need ppp.link{up,down}, we couldn't disable IPCP. Now, if IPCP is disabled, ppp.link{up,down} is invoked at the end of IPV6CP negotiation.
* Correct typos, mostly s/ a / an / where appropriate. Some whitespace cleanup,schweikh2003-01-011-1/+1
| | | | especially in troff files.
* utmp.ut_time and lastlog.ll_time are explicitly int32_t rather thanpeter2002-11-151-1/+1
| | | | | | | | | | | | time_t. Deal with the possibility that time_t != int32_t. This boils down to this sort of thing: - time(&ut.ut_time); + ut.ut_time = time(NULL); and similar for ctime(3) etc. I've kept it minimal for the stuff that may need to be portable (or 3rd party code), but used Matt's time32 stuff for cases where that isn't as much of a concern. Approved by: re (jhb)
* If the peer gives us 0.0.0.0 as his IP number, NAK it rather than acceptingbrian2002-09-231-1/+2
| | | | | | | | | | | it as being in range. set ifaddr 1.2.3.4/0 5.6.7.8/0 no longer allows 0.0.0.0 as a valid IP. Reported/tested by: Bohdan Horst <nexus@hoth.amu.edu.pl> MFC after: 3 days
* Unbreak -DNOINET6brian2002-09-021-0/+2
| | | | | Submitted by: Andre Albsmeier <andre.albsmeier@mchp.siemens.de> MFC after: 1 day
* Correctly handle ifr.ifr_flags/ifr.ifr_flagshigh like ifconfig(8) does.sobomax2002-08-291-3/+6
| | | | MFC after: 1 day
* - made ppp compliant to RFC 2472 (based on a patch from anotherbrian2002-08-295-49/+176
| | | | | | | | | contributor) - support ipv6cpretry and ipv6cpretries, which are IPv6 versions of ipcpretry and ipcpretries. - improve handling of IPv6 link-local addresses Submitted by: JINMEI Tatuya <jinmei@isl.rdc.toshiba.co.jp>
* Include the correct file (stdarg.h) and use va_list rather than _BSD_VA_LIST_brian2002-08-2724-6/+26
| | | | Suggested by: mike
* Use _BSD_VA_LIST_ rather than __va_list if it's definedbrian2002-08-271-2/+5
|
* Correct the FAQ urlbrian2002-08-262-4/+6
| | | | Submitted by: Olivier Tharan <olive@oban.frmug.org>
* Replace various spelling with FALLTHROUGH which is lint()ablecharnier2002-08-255-13/+15
|
* o Merge <machine/ansi.h> and <machine/types.h> into a new headermike2002-08-211-2/+2
| | | | | | | | | | | | | | | | | | | | | called <machine/_types.h>. o <machine/ansi.h> will continue to live so it can define MD clock macros, which are only MD because of gratuitous differences between architectures. o Change all headers to make use of this. This mainly involves changing: #ifdef _BSD_FOO_T_ typedef _BSD_FOO_T_ foo_t; #undef _BSD_FOO_T_ #endif to: #ifndef _FOO_T_DECLARED typedef __foo_t foo_t; #define _FOO_T_DECLARED #endif Concept by: bde Reviewed by: jake, obrien
* mdoc(7) police: Removed redundant .Ns calls.ru2002-08-131-1/+1
|
* Correct URL to the FAQblackend2002-07-311-1/+1
| | | | MFC after: 1 week
* Correct links to Handbook's pages, old URLs does not work anymore.blackend2002-07-301-2/+2
| | | | MFC after: 1 week
OpenPOWER on IntegriCloud