Commit Graph

249 Commits

Author SHA1 Message Date
christos
76c4e27a2a Coveriy CID 797: Avoid NULL deref. 2006-05-25 01:22:53 +00:00
mrg
aadd7d4847 sprinkle some -fno-strict-aliasing and -Wno-pointer-sign with GCC4. 2006-05-11 23:16:28 +00:00
mrg
58d1fc7bc5 use -fno-strict-aliasing with GCC4. 2006-05-11 07:17:41 +00:00
christos
62da5ad066 forgot to commit the links to sl* 2006-03-16 16:53:23 +00:00
christos
85d0017934 Initialize loop master to -1 so that we don't accidentally close fd 0; should
fix smb's problem.
2006-01-29 17:52:38 +00:00
christos
f4a430efd2 Use the ppp zlib from net. In preparation for importing zlib-1.2.3.
Unfortunately due to the changes in 1.2.3 that have more fine-grain
states between calls to inflate, we cannot easily adapt it to
packetized mode.
2006-01-14 19:55:11 +00:00
christos
b018a2c29a revert previous. persist does not need to reset the line discipline. (verified
by perry)
2006-01-11 21:16:51 +00:00
christos
c68bc6a017 reset the tty in the normal tty discipline if we persist so that we can
dial again.
2006-01-10 22:57:35 +00:00
christos
36134a63ad - don't leak the ipv6 file descriptor when we close
- fix packet statistics
- don't check errno if n != -1
- check more error conditions
- relinguish the ppp tty when we are on demand mode, fixes demand mode
- ansi prototypes
2005-12-31 08:36:01 +00:00
martin
58a5eedc83 If SMALLPROG is set, do not build in PAM support. While there, depend
USE_INET6 on SMALLPROG/SMALLPROG_INET6 like ftp does it.
This fixes the build of install media (pc532 and sparc64) that include
ppp support.
2005-03-22 22:20:27 +00:00
he
8e8728c45c Introduce PAM_STATIC_LDADD and PAM_STATIC_DPADD. When compiling
with MKPIC=no, possibly because the target does not support shared
libraries, these include libraries required to resolve all symbols
which end up referenced from PAM-using applications.  The libraries
presently required are -lcrypt, -lrpcsvc and -lutil.

Add use of these variables which are currently set up to use PAM,
so that they compile when MKPIC=no.

Also, in the telnetd case, reorder the order of the libraries, so
that libtelnet.a comes before -ltermcap and -lutil, again to fix
link error when MKPIC=no.

Discussed with thorpej and christos.
2005-03-04 20:41:08 +00:00
christos
bc42aa47c9 Add PAM hooks. 2005-02-22 00:34:27 +00:00
cube
88aa34aadf Include <bsd.own.mk> to get NETBSDSRCDIR definition before we use it in
.PATH.  Reported by Geoff Wing.
2005-02-21 06:41:20 +00:00
cube
44a5931b78 Add the compile hook for passwordfd plugin. 2005-02-20 11:14:37 +00:00
cube
f0a7dc0094 Make this use the new pppd version.
A few notes:
	o pppd/sys-bsd.c, pppdump/pppdump.h are local file, they're kept
	  here.  It is the case for the status plugin, too.
	o tdb.[ch] is the TDB implementation we will use, from previous
	  pppd versions.
2005-02-20 11:12:42 +00:00
lukem
7157011597 Only compile in IPv6 support if ${USE_INET6} != "no"
MKINET6 is for providing IPv6 infrastructure.
USE_INET6 is for compiling IPv6 support into the programs (needs MKINET6).
2005-01-10 02:58:58 +00:00
christos
37d722af2b Now that ppp is a cloning interface, detect if we have support for it in
the kernel by examining if it is in the list of cloning devices.
2004-12-05 04:16:22 +00:00
dsl
9efede97a9 Add (unsigned char) cast to ctype functions 2004-10-30 15:04:45 +00:00
christos
28c9afd120 Complete check for packet length, and add verbose errors for malformed
packets.
2004-10-28 17:07:27 +00:00
itojun
e2426ca020 re-enable a length check which was commented out (why?).
http://www.securitylab.ru/49043.html
2004-10-28 07:50:34 +00:00
itojun
981eb66521 cbcp option length is too long, stop parsing.
http://www.securitylab.ru/49043.html
2004-10-28 07:45:21 +00:00
mycroft
b96803cc00 Revert part of rev 1.31. It is *not* necessary to leave the executable
unstripped to load modules.  The symbol table that we strip isn't even loaded
or used by the dynamic linker.
2004-07-21 07:00:27 +00:00
christos
eba562cd86 PR/20066: John F. Woods: Supply a loadable lcpstatus command. 2004-05-13 19:37:58 +00:00
christos
1345b8cdf5 PR/20066: John F. Woods: Add plugin lcp hooks. 2004-05-13 17:31:57 +00:00
christos
18289afe56 PR/21178: Christian Biere: Potential misuse of ctype functions [pppd] 2004-05-13 17:02:32 +00:00
elric
a4f71a0494 np->h_net is not a pointer. 2004-05-09 15:54:59 +00:00
itojun
26e2172ca7 MAX_IFS is no longer needed. Maxim Konovalov 2004-02-28 19:27:49 +00:00
lukem
804acb39e4 be more explicit in describing how the default local IP address is determined 2004-02-22 11:34:16 +00:00
christos
4576b16a9b Increase the buffer size for result strings. Reported by Sergey Svishchev
svs at ropnet dot ru
2003-11-02 08:54:06 +00:00
fvdl
e7e0e9e521 Don't return NULL for an integer. 2003-10-21 02:49:07 +00:00
itojun
686afb7f65 safer use of realloc 2003-10-16 06:22:09 +00:00
christos
27a8c2abc5 PR/22776 : Andreas Wrede: proxyarp in pppd is broken 2003-09-13 18:55:17 +00:00
christos
b03d86adf3 Use PPPIOCGRAWIN to get the last characters the remote sent, if we are not
8 bit clean.
2003-09-01 16:54:27 +00:00
itojun
f4c0491af5 one more SIOCGIFCONF->getifaddrs conversion 2003-08-17 21:43:29 +00:00
itojun
0f6ff2de74 rewrite SIOCGIFCONF into getifaddrs(3) 2003-08-17 21:36:56 +00:00
agc
326b2259b7 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22366, verified by myself.
2003-08-07 11:25:11 +00:00
itojun
63b4a66b0f strlcpy is prototyped in string.h 2003-07-13 14:02:23 +00:00
christos
b4f029d21d revert to revision 1.41, since 1.42 did not fix the problem and made the
code more complicated. Fix the real issue which was setting the dst addr
incorrectly.
2003-06-09 13:35:10 +00:00
christos
7eec87e751 previous fix had trouble deleting routes; try to delete a more generic
default route.
2003-06-05 19:48:49 +00:00
christos
a23e290bac Specify the interface where to place the default route, otherwise we sometimes
can put it in the wrong place.
2003-05-28 13:43:26 +00:00
itojun
ef713a2fe9 use strlcat 2003-05-17 21:00:57 +00:00
itojun
9e390651ee remove local copy of strl{cat,cpy} 2003-05-17 20:49:28 +00:00
itojun
272c80e349 avoid possible buffer overrun 2003-05-16 18:15:34 +00:00
christos
367ffb5e14 PR/3272: Wailer: Don't send lcp echo's if we are not opened. 2003-04-01 15:12:12 +00:00
perry
bbf77a1edf dialling->dialing (from me)
substition->substitution (from Igor Sobrado, PR misc/20744)
2003-03-31 01:09:08 +00:00
perry
893cb2b5a6 spelling fixes, including some pointed out by Igor Sobrado in
PR misc/20745
I've submitted the changes back to paulus@samba.org
2003-03-31 01:00:13 +00:00
wiz
3425830569 Uppercase ULTRIX. Igor Sobrado in PR 19678. 2003-03-30 21:20:17 +00:00
wiz
46ebb6111a Correct spelling of "overridden". Found in follow-up to PR 20718. 2003-03-15 19:24:02 +00:00
christos
c5011d1086 PR/20065: John F. Woods: Fix pluggin compilation 2003-01-26 17:34:19 +00:00
taca
eb37d628b3 Fix compile error with DEBUGMAIN. 2003-01-07 15:04:54 +00:00