summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp
Commit message (Collapse)AuthorAgeFilesLines
* Document that ppp handles pipe(2) descriptors specially in -direct mode.brian2009-08-251-1/+14
| | | | MFC after: 3 days
* When ``ppp -direct'' is invoked by a program that uses pipe(2) tobrian2009-08-244-126/+305
| | | | | | | | | | | | | create stdin and stdout, don't blindly try to use stdin as a bi-directional channel. Instead, detect the pipe and set up a special exec handler that indirects write() calls through stdout. This fixes the problem where ``set device "!ssh -e none host ppp -direct label"'' no longer works with an openssh-5.2 server side as that version of openssh ignores the USE_PIPES config setting and *always* uses pipes (rather than socketpair) for stdin/stdout channels. MFC after: 3 days
* When realloc()ing device memory for transfer to another ppp process,brian2009-08-243-11/+13
| | | | | | | | don't continue to use the realloc()d pointer - it might have changed! Remove some stray diagnostics while I'm here. MFC after: 3 days
* Don't get stuck in an infinite loop comparing (short++ <= maxshort)brian2009-07-191-3/+2
| | | | | | | PR: 136893 Submitted by: Aragon Gouveia - aragon at phat dot za dot net (mostly) Approved by: re (kib) MFC after: 3 weeks
* Add a missing phrase.brian2009-07-051-1/+1
| | | | | | | Submitted by: Jason McIntyre jmc at kerhand dot co dot uk Approved by: re (kib) Obtained from: OpenBSD MFC after: 3 weeks
* Fix a race that can stall the timer when we remove a timer that has anotherbrian2009-05-261-14/+23
| | | | | | | | | | | timer with a <0.05 second delta next to it. This is done by avoiding the possibility of updating the first residual time delta in the timer list to zero. PR: 102747 Submitted by: Sergey Zaharchenko - doublef-ctm at yandex dot ru MFC after: 3 weeks
* Conditionally add the interface name and address if availablebz2009-04-204-4/+14
| | | | | | | | | | so that a ppp running in `receiver' (server) mode can properly update routes, for example to update the MTU. Submitted by: loos.br gmail.com (Luiz Otavio O Souza) PR: bin/130159 PR: kern/125079, kern/122068, bin/126892 MFC after: 3 days
* While we currently still seem to have a gateway address, for futurebz2009-04-201-2/+5
| | | | | | | | | | | | | | stability, check for gw to be set before adding the flag and the address to the routing message. r186308, backed out in r191305, already tried to do that, and in addition ignore AF_LINK types of gateway addresses to work around a problem that r167797 had introduced on the kernel side always setting RTF_GATEWAY if a gateway address was passed into the kernel. The proper solution for this is still under discussion so I am hesitant to re-add the special AF_LINK treatment for now. MFC after: 3 days
* Back out r186308:bz2009-04-201-3/+1
| | | | | | | | | | | in case of AF_LINK, which the kernel still returns for an RTAX_GATEWAY as an empty sockaddr_dl in the classic tun<n> case. Copying the address into the message payload, but not the RTA_GATEWAY flag results in rt_xaddrs() in the kernel tripping over that and parsing the next attribute set with a flag, i.e. RTA_NETMASK, with the gateway address, resulting in bogus route entry. MFC after: 3 days
* In case the peer address was already configured on the interfacebz2009-04-131-0/+1
| | | | | | | | | we were not properly handling proxy arp. Make sure we (try to) add the proxy arp entry/entries in this case as well. PR: bin/131250 Submitted by: loos.br gmail.com (Luiz Otavio O Souza) MFC after: 3 days
* The ppp application relies on the if_tun interface to properlyqingli2008-12-191-1/+3
| | | | | | | install a p2p host route between the end points. The ppp module upates this router based on user configuration later on. The rt_Update() seems to always set the RTF_GATEWAY flag, which is broken.
* This main goals of this project are:qingli2008-12-151-2/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. separating L2 tables (ARP, NDP) from the L3 routing tables 2. removing as much locking dependencies among these layers as possible to allow for some parallelism in the search operations 3. simplify the logic in the routing code, The most notable end result is the obsolescent of the route cloning (RTF_CLONING) concept, which translated into code reduction in both IPv4 ARP and IPv6 NDP related modules, and size reduction in struct rtentry{}. The change in design obsoletes the semantics of RTF_CLONING, RTF_WASCLONE and RTF_LLINFO routing flags. The userland applications such as "arp" and "ndp" have been modified to reflect those changes. The output from "netstat -r" shows only the routing entries. Quite a few developers have contributed to this project in the past: Glebius Smirnoff, Luigi Rizzo, Alessandro Cerri, and Andre Oppermann. And most recently: - Kip Macy revised the locking code completely, thus completing the last piece of the puzzle, Kip has also been conducting active functional testing - Sam Leffler has helped me improving/refactoring the code, and provided valuable reviews - Julian Elischer setup the perforce tree for me and has helped me maintaining that branch before the svn conversion
* Make ppp use <termios.h>, not <sys/tty.h>.ed2008-06-051-1/+1
| | | | | | | | ppp's physical.c is filled with calls to termios. For some reason, it includes <sys/tty.h>, not <termios.h>. Even though this works with the current version of FreeBSD, we'd better follow the standards. Approved by: philip (mentor)
* Remove ISDN4BSD (I4B) from HEAD as it is not MPSAFE andbz2008-05-264-484/+2
| | | | | | | | | | | | | | | | | | parts relied on the now removed NET_NEEDS_GIANT. Most of I4B has been disconnected from the build since July 2007 in HEAD/RELENG_7. This is what was removed: - configuration in /etc/isdn - examples - man pages - kernel configuration - sys/i4b (drivers, layers, include files) - user space tools - i4b support from ppp - further documentation Discussed with: rwatson, re
* Update to the "new" libalias API (and thus fix world breakage).piso2008-03-124-23/+30
|
* Revert previous commit and fix OpenPAM issue properly.des2007-12-221-6/+6
|
* Fix/workaround build breakage caused by PAM importkmacy2007-12-211-1/+1
| | | | | struct pam_conv takes a void * for the appdata_ptr but is being passed a const char * - explicitly cast away the const
* Use uintptr_t to cast a pointer to an integer to avoid compiler warningsjb2007-11-172-2/+2
| | | | on processors where sizeof(void *) > sizeof(int).
* I4B header files are now installed in include/i4b/ and no longerbz2007-07-061-5/+0
| | | | | | | | in include/machine/. Adapt #include paths. Approved by: re (kensmith)
* Cleanup after previous commit.brueffer2007-05-251-3/+5
|
* Add a new option for ppp.conf: rad_port_id. It allows tonovel2007-05-254-12/+80
| | | | | | | | | | | | | | | change the way of what ppp submits to the RADIUS server as NAS-Port-Id. Possible options are: the PID of the process owning the corresponding interface, tun(4) interface number, interface index (as it would get returned by if_nametoindex(3)), or it's possible to keep the default behavior. Check the ppp(8) manual page for details. PR: bin/112764 Submitted by: novel (myself) Reviewed by: flz Approved by: flz MFC after: 1 month
* Check the return value from rad_cvt_ipv6prefix().ume2007-03-011-1/+7
| | | | | PR: bin/89808 MFC after: 1 week
* MFp4: struct fsm_opt_hdr needs to be __packed as it is used as an array forticso2007-01-051-1/+1
| | | | | handling wire data This is required to get ppp working on arm.
* Listen to a control socket on an IPv4 as well throughume2006-09-181-0/+7
| | | | | | | | an IPv4-mapped IPv6 address. Reported by: Julian H. Stacey <jhs__at__flat.berklix.net> Test by: Julian H. Stacey <jhs__at__flat.berklix.net> MFC after: 1 week
* Remove leading zerosbrian2006-09-061-1/+1
| | | | Suggested by: mdoc police (ru)
* Remove __DATE__ so that compiling the same source produces the same binarybrian2006-09-062-4/+5
| | | | (for non-static binaries at least).
* If the peer REJects our MRU request and that request is for a valuebrian2006-09-061-0/+3
| | | | less than the current MTU, set our mtu to the value requested.
* Reimplementation of world/kernel build options. For details, see:ru2006-03-171-5/+7
| | | | | | | | http://lists.freebsd.org/pipermail/freebsd-current/2006-March/061725.html The src.conf(5) manpage is to follow in a few days. Brought to you by: imp, jhb, kris, phk, ru (all bugs are mine)
* Fix a typobrian2005-09-221-1/+1
| | | | Obtained from: OpenBSD
* Remove this file as it's mostly out of date. Up-to-date info such asbrian2005-09-121-49/+0
| | | | | | the program's origin is already in the man page. Update requested by: Xavier Venient & Jason McIntyre
* NI_WITHSCOPEID cleanup. Neither RFC 2553 nor RFC 3493 definesume2005-05-131-5/+0
| | | | | NI_WITHSCOPEID, and our getaddrinfo(3) does nothing special for it, now.
* The kernel doesn't need to include a tun device - the module will be loadedbrian2005-05-061-7/+0
| | | | on demand if required.
* Update the manual page for ppp(8).jcamou2005-04-281-21/+3
| | | | | | | PR: docs/78605 Submitted by: John E. Hein <jhein@timing.com> Approved by: trhodes (mentor) MFC after: 1 day
* Be concerned about huge callback numbers by truncating them rather thanbrian2005-02-151-5/+9
| | | | | | scribbling past the end of our buffer. Problem spotted by: Damien COUDERC couderc at openbsd dot org
* Expand contractions.ru2005-02-131-42/+42
|
* Expand *n't contractions.ru2005-02-131-29/+29
|
* Use the correct length when copying trailing data!!brian2005-02-081-1/+1
| | | | | | PR: 77104 Submitted by: Martin Birgmeier martin at email dot aon dot at MFC after: 3 days
* Add a radius_Flush() function that waits for the response (or timeout) tobrian2005-01-274-0/+23
| | | | | | | | | | | | | | any pending RADIUS transaction. Use this before sending RAD_STOP RADIUS messages so that we definitely ``stop'' the session. It was discovered that sometimes when the link timed out, we got lucky enough to have an un-ACK'd RADIUS accounting transaction in progress, resulting in the RAD_STOP message failing to send. Original report found on: A russion news group Text translated by: glebius Tested by: Alexey Popov llp at iteranet dot com MFC after: 7 days
* Fixed xref.ru2005-01-211-1/+1
|
* Scheduled mdoc(7) sweep.ru2005-01-111-1/+1
|
* Use the standard BSD copyright as per OpenBSD and /sys/net/slcompress*brian2005-01-102-31/+59
|
* Cast unsigned variables to intbrian2005-01-101-1/+1
|
* ifr_flagshigh is FreeBSD specificbrian2005-01-101-0/+6
|
* Integrate some OpenBSD alignment fixes. This hopefully also fixes PR 38058...brian2005-01-102-27/+35
| | | | Obtained from: Brad <brad@comstyle.com>
* NOPAM -> NO_PAMru2004-12-211-0/+3
|
* Overhaul ppp(8) build options so they are safe to use inru2004-12-211-18/+26
| | | | | | | | | | | | | | | | /etc/make.conf: NOALIAS -> retired (support provided by PPP_NO_NAT) NOATM -> PPP_NO_ATM (also subject to NO_ATM global) NODES -> PPP_NO_DES (support was broken, now recovered) NOI4B -> PPP_NO_I4B (also subject to NO_I4B global) NOKLDLOAD -> PPP_NO_KLDLOAD NONAT -> PPP_NO_NAT NONETGRAPH -> PPP_NO_NETGRAPH NOPAM -> PPP_NO_PAM (will be subject to NO_PAM global) NORADIUS -> PPP_NO_RADIUS NOSUID -> retired (support provided by PPP_NO_SUID) PPP_NOSUID -> PPP_NO_SUID
* The C define is NONAT.ru2004-12-211-1/+1
|
* NOINET6 -> NO_INET6ru2004-12-211-1/+1
|
* NOCRYPT -> NO_CRYPTru2004-12-211-1/+1
|
* NOATM -> NO_ATMru2004-12-211-2/+2
|
OpenPOWER on IntegriCloud