summaryrefslogtreecommitdiff
path: root/usr.sbin/ppp
AgeCommit message (Collapse)Author
2010-03-26dispense with some wacky escape sequences;Jason McIntyre
2010-02-24According to mdoc.samples(7), .Xo is explicitely disallowed after .Op,Ingo Schwarze
so switch from .Op Xo to .Oo Oc Xo, avoiding overlapping blocks. Note that removing the .Xo/.Xc and just putting everything on one line looks good, but is not possible right now because it triggers one of our old groff bugs, killing the build. Also fix another case of explicitly overlapping blocks, changing Oo Xo Oc Oo Op Oc Xc to just Oo Oc Oo Oo Oc Oc. ok jmc@
2010-01-05- properly spell "packet".Jasper Lievisse Adriaanse
2009-12-11Buffer overflow when padding the password buffer to a 16 byte boundary.Owain Ainsworth
found by parfait. Miod again pointed out my mistakes (ppp obviously doesn't sit well with me). ok miod@
2009-12-11Fix two identical buffer overruns.Owain Ainsworth
found by parfait, my stupid mistake pointed out by miod, who also oked this.
2009-09-02Correct the currently supported RFC level of the IPv6CP support,Stuart Henderson
we have supported RFC2472 for some time. From Brad.
2009-08-31Don't get stuck in an infinite loop comparing u_short <= USHRT_MAX whichClaudio Jeker
can happen if a nat port command with a end range of 65535 is used. See also http://www.freebsd.org/cgi/query-pr.cgi?pr=136893 From FreeBSD via brad.
2009-07-02Rewrite the sysctl handlers to use libc functions (getifaddrs andClaudio Jeker
if_indextoname) instead of looking at the sysctl data directly. This makes the code a lot simpler and actually work. Tested by many (todd@, sthen@, and a few people on tech@). OK sthen@, deraadt@
2009-06-25At least try to check for the RTM_VERSION here even so part of this codeClaudio Jeker
escaped from a horror story and robs you're sanity. This needs major cleanup. OK sthen@, OK henning@
2009-06-05correct a format string typeTheo de Raadt
2009-06-05rtm->rtm_hdrlen conversionChris Cappuccio
ok claudio@, henning@
2008-11-12we should not document each operand in the usage of a command,Igor Sobrado
it is an usual practice on BSDs and make the synopsis and usage more robust when operands are added or removed; synchronize the usage with the synopsis on the manual page; while here, remove superfluous information from the usage. ok jmc@
2008-10-02Repair "set reconnect random 0" from PR 5368. This bug report was ignoredTheo de Raadt
since Feb 2007, even though it had a patch. How did this happen??
2008-08-07Fix a typo, inteface -> interface.Brad Smith
From Gleydson Soares <gsoares at gmail dot com>
2008-07-19Use the IPv6 documentation prefix 2001:db8::/32 from RFC 3849 insteadReyk Floeter
of the deprecated 3ffe::/16 6bone test address space. Deprecated or public IPv6 allocations should not be used for documentation; we have the same approach for IPv4 by using RFC 1918 private addresses. ok jmc@ todd@
2008-05-21punctuation fix;Jason McIntyre
2008-05-21Do not mention pccom any longer.Miod Vallat
2008-05-06More missing RTM_VERSION checks. OK henning@Claudio Jeker
2008-03-24msg_controllen has to be CMSG_SPACE so that the kernel can account forTheo de Raadt
each cmsg_len (ie. msg_controllen = sum of CMSG_ALIGN(cmsg_len). This works now that kernel fd passing has been fixed to accept a bit of sloppiness because of this ABI repair. lots of discussion with kettenis
2008-03-15Repair more msg_controllen dealing with structures or arrays ofTheo de Raadt
descriptors; ok hshoexer, also looked at by kettenis and henning
2008-03-13Correct CMSG_SPACE and CMSG_LEN usage everywhere in the tree. Due toTheo de Raadt
an extensive discussion with otto, kettenis, millert, and hshoexer
2008-03-02another extra endpwent() not neededTheo de Raadt
2008-03-02Pass a buffer size to InterpretArg() and do not let it overflow it, savesMiod Vallat
propolice some work in command_Expand_Interpret(). Inspired by FreeBSD; ok deraadt@
2008-02-26Allow a range of baud rates in a manner similiar to tip/cu,Jonathan Gray
fixes PR 5734 as tested by Sergey Prysiazhnyi <apelsin@atmnis.com>. Fix suggested by and ok deraadt@, "diff is correct" miod@
2007-09-25handle empty strings returned by fgetsCharles Longeau
ok ray@
2007-09-11use strcspn to properly overwrite '\n' in fgets returned bufferGilles Chehade
ok pyr@, ray@, millert@, moritz@, chl@
2007-09-02use calloc() to avoid malloc(n * m) overflows; checked by djm canacar jsgTheo de Raadt
2007-07-26Remove the space after "Password:" in password prompts where echo isTodd C. Miller
turned off. This is consistent with historic UNIX behavior.
2007-06-02safer snprintf construct with more paranoid length calculationPeter Valchev
ok millert
2007-05-31convert to new .Dd format;Jason McIntyre
2006-12-11If the peer rejects my MRU request and our request is smaller then whatClaudio Jeker
the peer accepts, set the MRU anyway. Smaller packets are always accepted. From brian@FreeBSD via brad@ ok canacar@
2006-11-02Check that last character is a newline before truncating; preventsRay Lai
negative index array access. OK moritz@.
2006-09-25Use S_IS* macros insted of masking with S_IF* flags. The latter mayOtto Moerbeek
have multiple bits set, which leads to surprising results. Spotted by from Paul Stoeber, more to come. ok jaredy@
2006-02-06typos from alexey dobriyan;Jason McIntyre
2005-09-22consistency fixes, spotted by brian at awfulhak org;Jason McIntyre
2005-09-22add missing phrase;Jason McIntyre
ok brad@
2005-09-22add a few flags to CDIAGFLAGSBrad Smith
2005-09-21grammar, spelling, formatting fixes...Jason McIntyre
2005-09-21Added some missing defines.Brad Smith
From ru FreeBSD
2005-09-21Add a radius_Flush() function that waits for the response (or timeout) toBrad Smith
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. From brian FreeBSD
2005-09-21Support a ``set rad_alive N'' command to enable periodic RADIUS accountingBrad Smith
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. From brian FreeBSD
2005-09-21Send NAS-IP-Address as well as NAS-IdentifierBrad Smith
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. From brian FreeBSD
2005-09-21Avoid casts as lvalues.Brad Smith
From kan FreeBSD
2005-09-21If HISMACADDR is set in the environment, pass the value toBrad Smith
the RADIUS server as RAD_CALLING_STATION_ID. From brian FreeBSD
2005-09-21Send RADIUS gigaword data when OctetsIn or OctetsOut go over UINT32_MAX.Brad Smith
From dds FreeBSD
2005-09-21name union.Brad Smith
From ume FreeBSD
2005-09-21IPV6PREFIX is set when Framed-IPv6-Prefix is defined, You mayBrad Smith
want to pass the value to upper layer protocol such as DHCPv6 for prefix delegation. From ume FreeBSD
2005-09-21Do RADIUS accounting on IPV6CP.Brad Smith
From ume FreeBSD
2005-09-21Install routes specified by Framed-IPv6-Route. Since the formatBrad Smith
of Framed-IPv6-Route is user defined, it follows Framed-IP-route. From ume FreeBSD
2005-09-21Add IPv6 related attributes defined in RFC3162.Brad Smith
From ume FreeBSD