summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp
Commit message (Collapse)AuthorAgeFilesLines
* remove duplicate semicolons where possible.eadler2012-10-221-1/+1
| | | | | Approved by: cperciva MFC after: 1 week
* Some 3G modems return the wrong signature in echo packets and make itn_hibma2012-10-121-1/+2
| | | | | | | | | | | | | | | impossible to use LQR/ECHO. They return want_magic instead. With this change it is now possible to use enable lqr set lqrperiod 5 enable echo set echoperiod 5 in your ppp.conf file. MFC after: 3 days
* mdoc fixes.joel2012-09-081-41/+21
|
* Fix build:delphij2012-05-231-7/+7
| | | | | | | - Use %ll instead of %q for explicit long long casts; - Use %j instead of %q in XFS and cast to intmax_t. Tested with: make universe
* Handle NULL return from crypt(3). Mostly from DragonFlykevlo2012-02-221-1/+3
|
* Fix warning when compiling with gcc46:eadler2012-01-201-2/+1
| | | | | | | error: variable 'len' set but not used Approved by: dim, cperciva (mentor, blanket for pre-mentorship already-approved commits) MFC after: 3 days
* Fix warning when compiling with gcc46:eadler2012-01-201-2/+1
| | | | | | | error: variable 'extra_async_bytes' set but not used Approved by: dim, cperciva (mentor, blanket for pre-mentorship already-approved commits) MFC After: 3 days
* Fix warning when compiling with gcc46:eadler2012-01-201-2/+1
| | | | | | | | error: variable 'addrs' set but not used Approved by: dim Approved by: cperciva (mentor, blanket for pre-mentorship already-approved commits) MFC After: 3 days
* Spelling fixes for usr.sbin/uqs2011-12-306-12/+12
|
* Remove duplicated header fileskevlo2011-06-241-1/+0
|
* Add "iface name" and "iface description" commands.brian2011-02-078-24/+177
| | | | | | PR: 151400 Submitted by: Aragon Gouveia - aragon at phat dot za dot net with minor fixes MFC after: 3 weeks
* Log if fopen() fails.glebius2010-10-181-1/+4
| | | | Reviewed by: brian
* Bugfix: Reset the packet counters at the same time as the byte counts.n_hibma2010-09-181-2/+2
| | | | | Reviewed by: brian MFC after: 3 weeks
* Ethernet vlan(4) interfaces have valid Ethernet link layer addresses butjhb2010-08-061-0/+1
| | | | | | | | use a different interface type (IFT_L2VLAN vs IFT_ETHER). Treat IFT_L2VLAN interfaces like IFT_ETHER interfaces when handling link layer addresses. Reviewed by: syrinx (bsnmpd) MFC after: 1 week
* Need to set the proper flag bit when inserting ARPqingli2010-03-181-1/+1
| | | | | | entries into the kernel. MFC after: 3 days
* Unbreak world WITHOUT_NETGRAPH.antoine2010-01-161-0/+3
| | | | | | | PR: 137487 Submitted by: bf (previous version) No objections: net@ MFC after: 2 weeks
* Port ppp(8) to utmpx.ed2010-01-134-55/+32
| | | | | | | | A nice thing about utmpx is that it makes it very easy to log sessions that don't use TTYs. This is because the file is not indexed by TTY slots anymore. Silence from: brian
* Don't refer to pppd(8).trasz2009-12-281-6/+5
|
* 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.
OpenPOWER on IntegriCloud