Re: Anyone interested in HDLC support for pppd ?

2008-06-03 Thread Bruce M. Simpson
[EMAIL PROTECTED] wrote: Hello; I started playing a bit with net/pppd23 and I noticed there are some patches for FreeBSD-3.0 that were never committed (NetBSD certainly has them). Our pppd(8) is derived from the "samba" pppd port and should have them if we want to continue up

Anyone interested in HDLC support for pppd ?

2008-06-03 Thread pfgshield-freebsd
Hello; I started playing a bit with net/pppd23 and I noticed there are some patches for FreeBSD-3.0 that were never committed (NetBSD certainly has them). Our pppd(8) is derived from the "samba" pppd port and should have them if we want to continue updating it. I started adapting

[PATCH] pppd: added auto DNS configuration

2005-12-27 Thread Igor Pokrovsky
Hello, I've implemented DNS automatic negotiation and configuration in pppd (RFC1877). Since it is not a standard thing, I made it an optional feature of pppd. Some parts of the code were taken from ppp implementation. I would be greatful for testing of this patch and for any comment

pppd and DNS

2005-12-20 Thread Igor Pokrovsky
Hi, Looking through pppd sources I found that it doesn't know how to request DNS info from the server, while ppp can. Here I mean requesting DNS info and updating /etc/resolv.conf. Did anyone tried to make it possible with pppd? Since I used to pppd I'd like to teach him this useful fun

Re: PPPD!

2001-03-23 Thread Roman V. Palagin
On Mar 23, at 8:20pm +0200, petro wrote: > Does anybody know about support pppunit in the ppp conf files, or may be > can advice me where I can read about pppunit. > Thank you very much. pppunit is for pppd. Check out ftp://room101.wuppy.ne

Re: PPPD!

2001-03-23 Thread Brian Somers
> Hi! > Does anybody know about support pppunit in the ppp conf files, or may be > can advice me where I can read about pppunit. > Thank you very much. I'm afraid I can't really help, but I believe ppp(8) can do the same thing with the -unit command line switch. -- Brian <[EMAIL PROTECTED]>

PPPD!

2001-03-23 Thread petro
Hi! Does anybody know about support pppunit in the ppp conf files, or may be can advice me where I can read about pppunit. Thank you very much. To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: pppd & mkdir diff

2001-01-16 Thread mouss
At 14:50 16/01/01 +0200, Peter Pentchev wrote: >As somebody already pointed out, there *is* a dirname(3) function, and even >a dirname(1) cmdline utility to invoke it. oops. I'll need to stay current:) >In a followup to Alfred's mkdir(1) commit, I sent a sample implementation >of a direxname()

Re: pppd & mkdir diff

2001-01-16 Thread Peter Pentchev
On Tue, Jan 16, 2001 at 01:32:13PM +0100, mouss wrote: > These are probably cosmetic comments, but here they are anyway... > > > At 09:54 13/01/01 +, W.H.Scholten wrote: > > >+char *dirname(char *path) { > >+ char *slash; > >+ > >+ while (path[ strlen(path)-1 ] == '/') path[ str

Re: pppd & mkdir diff

2001-01-16 Thread mouss
These are probably cosmetic comments, but here they are anyway... At 09:54 13/01/01 +, W.H.Scholten wrote: >+char *dirname(char *path) { >+ char *slash; >+ >+ while (path[ strlen(path)-1 ] == '/') path[ strlen(path)-1 ] = 0; if path is an empty string, you are accessing path[-1

Re: pppd & mkdir diff

2001-01-14 Thread Warner Losh
In message <[EMAIL PROTECTED]> Ben Smithurst writes: : while (path[strlen(path) - 1] == '/') : path[strlen(path) - 1] = 0; : : :-) Preferably '\0' too of course like you say later. Yes. Actually, I'd do this like: cp = path + strlen(path) - 1; while (cp > pa

Re: pppd & mkdir diff

2001-01-14 Thread Alfred Perlstein
* Alfred Perlstein <[EMAIL PROTECTED]> [010113 19:15] wrote: > * W.H.Scholten <[EMAIL PROTECTED]> [010113 01:57] wrote: > > Alfred Perlstein wrote: > > > > [ mkdir ] > > > > > I'll commit the patch shortly. > > > > Here's a better patch, it checks for multiple slashes, so mkdir > > /tmp/aa///bb

Re: pppd & mkdir diff

2001-01-13 Thread Alfred Perlstein
* Warner Losh <[EMAIL PROTECTED]> [010113 19:55] wrote: > In message <[EMAIL PROTECTED]> "W.H.Scholten" writes: > : + while (path[ strlen(path)-1 ] == '/') path[ strlen(path)-1 ] = 0; > > Style(9) says write this like: > while (path[ strlen(path)-1 ] == '/') > path[ strlen(p

Re: pppd & mkdir diff

2001-01-13 Thread Kris Kennaway
> You might also like to contribute this back to the pppd maintainer > ([EMAIL PROTECTED])..although since our version is so old > chances are the patch would need to be rewritten - it would at least > show what needs to be done. Duh, I wasn't paying attention enough to note t

Re: pppd & mkdir diff

2001-01-13 Thread Kris Kennaway
On Sat, Jan 13, 2001 at 07:14:32PM -0800, Alfred Perlstein wrote: > Actually, there already exists a function called dirname in libc, dirname(3). > > Here's what I'm going to commit: You might also like to contribute this back to the pppd maintainer ([EMAIL PROTECTED]).

Re: pppd & mkdir diff

2001-01-13 Thread Ben Smithurst
Warner Losh wrote: > In message <[EMAIL PROTECTED]> "W.H.Scholten" writes: > : + while (path[ strlen(path)-1 ] == '/') path[ strlen(path)-1 ] = 0; > > Style(9) says write this like: > while (path[ strlen(path)-1 ] == '/') > path[ strlen(path)-1 ] = 0; No it doesn't. "No

Re: pppd & mkdir diff

2001-01-13 Thread Warner Losh
In message <[EMAIL PROTECTED]> "W.H.Scholten" writes: : + while (path[ strlen(path)-1 ] == '/') path[ strlen(path)-1 ] = 0; Style(9) says write this like: while (path[ strlen(path)-1 ] == '/') path[ strlen(path)-1 ] = 0; : + : + slash = strrchr(path, '/'); : +

Re: pppd & mkdir diff

2001-01-13 Thread Alfred Perlstein
* W.H.Scholten <[EMAIL PROTECTED]> [010113 01:57] wrote: > Alfred Perlstein wrote: > > [ mkdir ] > > > I'll commit the patch shortly. > > Here's a better patch, it checks for multiple slashes, so mkdir > /tmp/aa///bb will give: > > mkdir: /tmp/aa: No such file or directory > > Also, renam

Re: pppd & mkdir diff

2001-01-13 Thread W.H.Scholten
Alfred Perlstein wrote: [ mkdir ] > I'll commit the patch shortly. Here's a better patch, it checks for multiple slashes, so mkdir /tmp/aa///bb will give: mkdir: /tmp/aa: No such file or directory Also, renamed the function to dirname as it does the same as dirname(1). Regards, Wouter

Re: pppd & mkdir diff

2001-01-12 Thread Alfred Perlstein
* W.H.Scholten <[EMAIL PROTECTED]> [010112 03:13] wrote: > Alfred Perlstein wrote: > > > > 1. a pppd patch which sends the pppd messages to stderr. > > > > not sure about this one, I would open a PR about it. > > I'm not sure either :) Maybe everyone

Re: pppd & mkdir diff

2001-01-12 Thread W.H.Scholten
Alfred Perlstein wrote: > > 1. a pppd patch which sends the pppd messages to stderr. > > not sure about this one, I would open a PR about it. I'm not sure either :) Maybe everyone else uses gui frontend which reads pppd's syslog messages or starts pppd as root? > Ok,

Re: pppd & mkdir diff

2001-01-11 Thread Alfred Perlstein
* W.H.Scholten <[EMAIL PROTECTED]> [010111 13:17] wrote: > L.S. > > Here are two patches I've been using for a while on both 3.3R and 4.1R: > > 1. a pppd patch which sends the pppd messages to stderr. not sure about this one, I would open a PR about it. > 2. a

pppd & mkdir diff

2001-01-11 Thread W.H.Scholten
L.S. Here are two patches I've been using for a while on both 3.3R and 4.1R: 1. a pppd patch which sends the pppd messages to stderr. This is useful for dialup connections under X (I use a script to startup pppd, when the script is killed, so is pppd). Now the pppd startup messages are se

PPPD!

2000-11-09 Thread petro
Hello! I try to start pppd but always receive such message when start pppd Device cuaa0 is busy... What I must do, I try to kill all pppd and then start again, but again receive such message, before rebbot everything works fine Thank you... To Unsubscribe: send mail to [EMAIL PROTECTED

pppd and predictable ppp unit number

2000-05-29 Thread Jim Mercer
i'm working with some stuff (zebra and vpn-like tunnels using ssh/pppd) where it would be very nice if i could predict (specify) which ppp unit number applied to a given ppp session. i've been using pppd (kernel mode) and would prefer a kernel level connection, as opposed to the us

pppd + pam + radius (3) [getting crazy]

1999-06-14 Thread Paulo Fragoso
Hi, I've solved (I think) modules auth failures in pppd using PAM (compiled with -DUSE_PAM). It's work after one modification: --- ../pppd-orig/auth.c Sat Jun 20 15:02:08 1998 +++ auth.c Mon Jun 14 17:42:16 1999 @@ -867,7 +867,6 @@ */ pam_error = pam_authenticate (pamh,

PAM + pppd + Radius(2)

1999-06-10 Thread Paulo Fragoso
Hi, Now I've solved modules problem with pppd. My pam.conf is this: login authsufficient pam_skey.so login authrequisite pam_cleartext_pass_ok.so login authrequiredpam_unix.so try_first_pass ppp authrequiredpam_unix.so try_first

PAM + pppd + Radius

1999-06-10 Thread Paulo Fragoso
Hi, I've got a problem with pppd + pam: pppd[304]: no modules loaded for `ppp' service pppd[304]: PAP login failure for ... I've recompiled pppd with -DUSE_PAM, and I've added in pam.conf this: ppp authrequiredpam_radius.so try_first_pass What is wrong? W