summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/command.c
Commit message (Collapse)AuthorAgeFilesLines
* - Correct mispellings of the word occurrencegabor2013-04-171-1/+1
| | | | Submitted by: Christoph Mallon <christoph.mallon@gmx.de> (via private mail)
* Spelling fixes for usr.sbin/uqs2011-12-301-5/+5
|
* Add "iface name" and "iface description" commands.brian2011-02-071-0/+20
| | | | | | PR: 151400 Submitted by: Aragon Gouveia - aragon at phat dot za dot net with minor fixes MFC after: 3 weeks
* Update to the "new" libalias API (and thus fix world breakage).piso2008-03-121-3/+5
|
* Add a new option for ppp.conf: rad_port_id. It allows tonovel2007-05-251-1/+27
| | | | | | | | | | | | | | | 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
* Remove __DATE__ so that compiling the same source produces the same binarybrian2006-09-061-2/+1
| | | | (for non-static binaries at least).
* 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
* Implement an ``enable/disable echo'' option, defaults to off.brian2004-12-131-16/+38
| | | | | | | | | This allows LCP ECHOs to be enabled independently of LQR reports. Note: This introduces a change in the default behaviour (search for lqr and echo in the man page). I'll update UPDATING to reflect this. PR: 74821
* Send NAS-IP-Address as well as NAS-Identifierbrian2004-11-291-13/+25
| | | | | | | | Add ``disable NAS-IP-Address'' and ``disable NAS-Identifier'' options to support pre-rfc2865 RADIUS servers. This pushes our enable/disable items over the 32 bit limit, so reoganise things to allow a bunch more options. Go to version 3.4.1 so that any compatability problems can be identified.
* Add a bunch of malloc() return checksbrian2004-10-111-1/+1
| | | | | PR: 71592 Submitted by: Dan Lukes <dan@obluda.cz> with further changes
* Make ppp WARNS=5 cleanbrian2004-09-051-95/+100
|
* Add configuration option "set pppoe [standard|3Com]" which allowsglebius2004-07-291-0/+16
| | | | | | | to configure mode for ng_pppoe(4) node under control. Reviewed by: brian Approved by: julian (mentor)
* Support a ``set rad_alive N'' command to enable periodic RADIUS accountingbrian2004-07-171-3/+30
| | | | | | | | | | | information being sent to the RADIUS server. Logging of RADIUS accounting information moves to a ``set log [+-]radius'' level, along with the RADIUS alive info, and the version number is bumped to 3.2 to reflect this. Mostly submitted by: alx@sm.ukrtel.net (back in January) MFC after: 3 weeks
* Fix ``set ifaddr''. The code was actually using an uninitialised variable,brian2004-07-151-1/+1
| | | | | | | | | | but conveniently, because ncpaddr.ncpaddr_family != AF_INET, the call to ncpaddr_getip4addr() became a no-op leaving the local address as it was (defaulting to whatever my hostname resolves to). PR: 62050 Submitted by: Peter Jeremy <peter.jeremy@alcatel.com.au> MFC after: 3 days
* Add Cisco Skinny Station protocol support to libalias, natd, and ppp.marcus2003-09-231-0/+2
| | | | | | | | | | | | | | | 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
* IPV6PREFIX is set when Framed-IPv6-Prefix is defined, You mayume2003-06-201-0/+20
| | | | | | | want to pass the value to upper layer protocol such as DHCPv6 for prefix delegation. MFC after: 1 week
* Don't install wrong IPv6 route by add command.ume2003-03-261-1/+6
|
* Add a ``force-scripts'' option for using chat scripts with -direct andbrian2003-03-261-2/+5
| | | | | | -dedicated links. Submitted by: Maksim Yevmenkin <myevmenk@exodus.net>
* Unbreak -DNOINET6brian2002-09-021-0/+2
| | | | | Submitted by: Andre Albsmeier <andre.albsmeier@mchp.siemens.de> MFC after: 1 day
* - made ppp compliant to RFC 2472 (based on a patch from anotherbrian2002-08-291-0/+10
| | | | | | | | | 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-271-0/+1
| | | | Suggested by: mike
* Remove whitespace at the end of lines.brian2002-06-151-13/+13
|
* Bump the version number to reflect the recent RADIUS commitsbrian2002-06-121-1/+1
|
* Coerce pid_t to long rather than int for better portability.brian2002-05-271-7/+7
| | | | Suggested by: Theo de Raadt <deraadt@openbsd.org>
* Handle MS-CHAPv2 authentication correctly via the RADIUS server (if it'sbrian2002-05-161-1/+1
| | | | | | | | | | configured). Handle internal failures in radius_Authenticate() correctly. Bump the ppp version number. This doesn't yet work with MPPE. More will follow. Sponsored by: Mozoon
* o Clean up some #includesbrian2002-05-141-2/+1
| | | | | | | | | | | | | | | | | | o Bump version number to 3.0.4 o When talking to a RADIUS server, provide a NAS-Port-Type. When the NAS-Port-Type is Ethernet, provide a NAS-Port value equal to the SESSIONID from the environment in direct mode or the NGM_PPPOE_SESSIONID message in other modes. If no SESSIONID is found, default to the interface index in client mode or zero in server mode. When the NAS-Port-Type is ISDN, set the NAS-Port to the minor number of the physical device (ie, the N in /dev/i4brbchN). This makes it easier for the RADIUS server to identify the client WRT accounting data etc. Prompted by: lsz8425 <lsz8425@mail.cd.hn.cn>
* Make ``set mru'' require a context. In multi-link mode, there's nobrian2002-05-041-1/+1
| | | | | | | point in being allowed to ``set mru'' for the MP lcp layer. Spotted by: Richard Browne <richb@timestone.com.au> MFC after: 1 month
* Bump the version to mark the fixed FSM TLD orderingbrian2002-05-011-1/+1
|
* Usage style sweep: spell "usage" with a small 'u'.des2002-04-221-2/+2
| | | | | Also change one case of blatant __progname abuse (several more remain) This commit does not touch anything in src/{contrib,crypto,gnu}/.
* Add variable substitutions for SOCKNAME, IPOCTETSIN, IPOCTETSOUT, IPPACKETSIN,brian2002-04-171-28/+94
| | | | | IPPACKETSOUT, IPV6OCTETSIN, IPV6OCTETSOUT, IPV6PACKETSIN, IPV6PACKETSOUT, OCTETSIN, OCTETSOUT, PACKETSIN, PACKETSOUT and SOCKNAME.
* Make the way FSM options are processed easier to read by using structuresbrian2002-04-161-1/+1
| | | | | | | | | | | instead of u_char *. The changes are cosmetic except: RecvConfigAck() now displays the options that are being ACK'd Huge (bogus) options sent from the peer won't cause an infinite loop SendIdent and ReceiveIdent are displayed consistenlty with other FSM data LCP AUTHPROTO options that aren't understood are NAK'd, not REJ'd
* Merge the NETGRAPH branch into HEAD. tty devices now use netgraph's linebrian2002-03-301-4/+4
| | | | | | | | discipline to do the async escaping, but no other benefits are available yet. Change ``ifdef HAVE_DES'' to ``ifndef NODES'' for consistency. Make the Makefile a little more sane WRT RELEASE_CRUNCH.
* Expand the first argument of the ``log'' command if it's a variable.brian2001-11-221-1/+1
|
* Remove unused variablesbrian2001-11-041-5/+2
|
* Add a ``log'' command for logging specific information.brian2001-11-031-35/+51
| | | | | | | | | | | | | | Add an ``UPTIME'' variable to indicate the bundle uptime. It's now possible to put something like this in ppp.linkdown for a server setup: MYADDR: log Session closing: User USER, address HISADDR, up UPTIME Fixed some memory leakage with commands that expand words. Made some functions static. Fixed a diagnostic bug (iface add .... SIOCDIFADDR)
* Don't avoid setting a 0 second timer in datalink_StartDialTimer() bybrian2001-10-231-1/+1
| | | | | | | | | | | | | not setting any timer. Instead, set a 1 millisecond timer. This ensures that ppp will come out of it's select() call after losing carrier in -ddial mode with a reconnect period of 0 and going to ST_OPENING, rather than waiting indefinitely for some other event to wake ppp up. Bump the ppp version number to indicate the event. MFC after: 3 days
* Handle snprintf() returning < 0 (not just -1)brian2001-08-201-1/+5
| | | | MFC after: 2 weeks
* Better handling for the return of snprintf().brian2001-08-181-5/+8
|
* Back out the previous fix to deal with kernels that don't support IPv6,brian2001-08-181-20/+9
| | | | | | | | | | | | | | | and implement a far more subtle and correct fix. The reason behind the infinite loop was that ppp was trying to make up initial IPv6 numbers and wasn't giving up when it failed unexpectedly to assign the addresses it just fabricated to it's interface (thinking that the reason was because another interface was using the same address). It now attempts this up to 100 times before just failing and trying to muddle along (in reality, this should never happen more than a couple of times unless our random number generator doesn't work). Also, when IPv6 is not available, don't even try to assign the IPv6 interface address in the first place...
* Run correctly on a machine built without AF_INET6 supportbrian2001-08-181-9/+20
|
* Build properly with -DNOIPV6brian2001-08-181-0/+2
|
* Remove an unused variablebrian2001-08-161-1/+0
|
* Probe for the availability of AF_INET6 at startup. If it's notbrian2001-08-151-1/+8
| | | | | available, default ipv6cp to disabled and refuse to let the user enable it.
* o Add ipv6 support, abstracting most NCP addresses into opaquebrian2001-08-141-120/+197
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | structures (well, they're treated as opaque). It's now possible to manage IPv6 interface addresses and routing table entries and to filter IPV6 traffic whether encapsulated or not. IPV6CP support is crude for now, and hasn't been tested against any other implementations. RADIUS and IPv6 are independent of eachother for now. ppp.linkup/ppp.linkdown aren't currently used by IPV6CP o Understand all protocols(5) in filter rules rather than only a select few. o Allow a mask specification for the ``delete'' command. It's now possible to specifically delete one of two conflicting routes. o When creating and deleting proxy arp entries, do it for all IPv4 interface addresses rather than doing it just for the ``current'' peer address. o When iface-alias isn't in effect, don't blow away manually (via ``iface add'') added interface addresses. o When listening on a tcp server (diagnostic) socket, bind so that a tcp46 socket is created -- allowing both IPv4 and IPv6 connections. o When displaying ICMP traffic, don't display the icmp type twice. When display traffic, display at least some information about unrecognised traffic. o Bump version Inspired after filtering work by: Makoto MATSUSHITA <matusita@jp.FreeBSD.org>
* Add a ``nat punch_fw'' command for punching FTP and IRC DCC holes throughbrian2001-08-021-0/+4
| | | | the firewall.
* Handle peer REQ/NAKs of >1500 byte MRUs when we have no preference.brian2001-07-261-1/+1
| | | | MFC after: 3 days
* Fix the type of the last arg to execl()brian2001-07-091-1/+1
| | | | Obtained from: OpenBSD
* Add a ``nat proto'' command -- similar to natd(8)'s -redirect_proto switch.brian2001-07-091-0/+2
| | | | MFC after: 3 weeks
* Spell stateful properlybrian2001-07-061-2/+2
| | | | | Inconsistently done by: brian Spotted by: ru
* Silence some gcc warningsbrian2001-07-031-0/+4
|
OpenPOWER on IntegriCloud