Favicon

Help! It seems that pppd can't work properly when syslogd running on background

the syslog messege below:

Jan  1 00:03:09 (none) daemon.err pppoe-server[802]: PADT: Generic-Error: RP-PPPoE: System call error: Input/or
Jan  1 00:03:09 (none) daemon.info pppoe-server[802]: Sent PADT
Jan  1 00:03:09 (none) daemon.info pppd[814]: Terminating on signal 15
Jan  1 00:03:09 (none) user.notice Terminating on signal 15
Jan  1 00:03:09 (none) user.notice  
Jan  1 00:03:09 (none) daemon.warn pppd[814]: Child process /sbin/pppoe -n -I br0 -e 2:00:50:ba:fa:6d:e1
-S ''5
Jan  1 00:03:09 (none) user.notice Child process /sbin/pppoe -n -I br0 -e 2:00:50:ba:fa:6d:e1 -S '' (pid
815) 5
Jan  1 00:03:09 (none) user.notice  
Jan  1 00:03:14 (none) daemon.info pppoe-server[819]: Session 3 created for client 00:50:ba:fa:6d:e1 (192.168.'
Jan  1 00:03:14 (none) daemon.notice pppd[819]: pppd 2.4.3 started by root, uid 0
Jan  1 00:03:14 (none) daemon.info pppd[819]: Using interface ppp0
Jan  1 00:03:14 (none) user.notice Using interface ppp0
Jan  1 00:03:14 (none) user.notice  
Jan  1 00:03:14 (none) daemon.notice pppd[819]: Connect: ppp0 <--> /dev/pts/0
Jan  1 00:03:14 (none) user.notice Connect: ppp0 <--> /dev/pts/0
Jan  1 00:03:14 (none) user.notice  
Jan  1 00:03:15 (none) daemon.notice pppd[814]: Connection terminated.
Jan  1 00:03:15 (none) user.notice Connection terminated.
Jan  1 00:03:15 (none) user.notice  
Jan  1 00:03:15 (none) daemon.warn pppd[819]: Warning - secret file /etc/ppp/pap-secrets has world
and/or grous
Jan  1 00:03:15 (none) user.notice Warning - secret file /etc/ppp/pap-secrets has world and/or group access
Jan  1 00:03:15 (none) user.notice  
Jan  1 00:03:15 (none) daemon.notice pppd[814]: Modem hangup
Jan  1 00:03:15 (none) user.notice Modem hangup
Jan  1 00:03:15 (none) user.notice  
(Continue reading)

James Carlson | 4 May 16:55

Re: Help! It seems that pppd can't work properly when syslogd running on background

cyx_mail <at> foxmail.com writes:
> Jan  1 00:03:09 (none) daemon.info pppd[814]: Terminating on signal 15
[...]
> Jan  1 00:03:09 (none) daemon.warn pppd[814]: Child process /sbin/pppoe -n -I br0 -e
2:00:50:ba:fa:6d:e1 -S ''5
[...]
> Jan  1 00:03:15 (none) daemon.notice pppd[814]: Connection terminated.
[...]
> Jan  1 00:03:45 (none) daemon.info pppd[819]: Terminating on signal 15
[...]

It looks to me like pppd is being terminated by rp-pppoe.

For what it's worth, I don't see anything in pppd that could
reasonably be affected by whether syslogd is running or not, and
certainly nothing that would _stop_ working simply because syslogd is
there.

My guess would have to be a bug in the underlying operating system.
Whatever it is, it's obscure.

> but I can get a successful connection when I kill syslogd ,Why?

There've been many postings about this problem over the past year or
so.  I don't think anyone knows how to fix the problem.

The common components seem to be Linux and rp-pppoe.  Pppd works fine
on other platforms and when PPPoE isn't in use.

--

-- 
(Continue reading)

Chris Fowler | 4 May 18:56
Favicon

Re: Help! It seems that pppd can't work properly when syslogd running on background

On Sun, 2008-05-04 at 10:55 -0400, James Carlson wrote:
> The common components seem to be Linux and rp-pppoe.  Pppd works fine
> on other platforms and when PPPoE isn't in use.

I use pppd and pppoe on my system.

Linux firewall 2.4.18-3firewall #5 Sat Aug 24 20:33:10 EDT 2002 i586
unknown

--
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
the body of a message to majordomo <at> vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

James Carlson | 4 May 19:00

Re: Help! It seems that pppd can't work properly when syslogd running on background

Chris Fowler writes:
> On Sun, 2008-05-04 at 10:55 -0400, James Carlson wrote:
> > The common components seem to be Linux and rp-pppoe.  Pppd works fine
> > on other platforms and when PPPoE isn't in use.
> 
> I use pppd and pppoe on my system.
> 
> Linux firewall 2.4.18-3firewall #5 Sat Aug 24 20:33:10 EDT 2002 i586
> unknown

... and it doesn't happen on _all_ systems, just _some_ of them.
Whatever it is, it's strange.

--

-- 
James Carlson         42.703N 71.076W         <carlsonj <at> workingcode.com>
--
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
the body of a message to majordomo <at> vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Chris Fowler | 4 May 19:12
Favicon

Re: Help! It seems that pppd can't work properly when syslogd running on background

On Sun, 2008-05-04 at 13:00 -0400, James Carlson wrote:
> Chris Fowler writes:
> > On Sun, 2008-05-04 at 10:55 -0400, James Carlson wrote:
> > > The common components seem to be Linux and rp-pppoe.  Pppd works fine
> > > on other platforms and when PPPoE isn't in use.
> > 
> > I use pppd and pppoe on my system.
> > 
> > Linux firewall 2.4.18-3firewall #5 Sat Aug 24 20:33:10 EDT 2002 i586
> > unknown
> 
> ... and it doesn't happen on _all_ systems, just _some_ of them.
> Whatever it is, it's strange.
> 

trace it.  Use strace and see what is going on.

--
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
the body of a message to majordomo <at> vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Favicon

How and Where the pppd initialze its plugins?

How and Where the pppd initialze its plugins?

2008-05-05 

--
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
the body of a message to majordomo <at> vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

James Cameron | 5 May 05:42
Picon
Favicon

Re: How and Where the pppd initialze its plugins?

On Mon, May 05, 2008 at 11:26:36AM +0800, cyx_mail <at> foxmail.com wrote:
> How and Where the pppd initialze its plugins?

pppd/options.c, the pppd plugin option loads a plugin and calls the
plugin specific initialiser.  See loadplugin().

--

-- 
James Cameron
http://ftp.hp.com.au/sigs/jc/
--
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
the body of a message to majordomo <at> vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Favicon

about option_t

typedef struct {
	char	*name;		/* name of the option */
	enum opt_type type;
	void	*addr;
	char	*description;
	unsigned int flags;
	void	*addr2;
	int	upper_limit;
	int	lower_limit;
	const char *source;
	short int priority;
	short int winner;
} option_t;

Which piece of code call the void *addr. some plugins uses this pointer to call functions when the plugin
loads. BTW, what is the exactly meaning of each value of enum opt_type struct? Thanks a lot!

2008-05-05 

--
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
the body of a message to majordomo <at> vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

James Cameron | 5 May 12:05
Picon
Favicon

Re: about option_t

On Mon, May 05, 2008 at 03:34:29PM +0800, cyx_mail <at> foxmail.com wrote:
> Which piece of code call the void *addr. some plugins uses this
> pointer to call functions when the plugin loads. BTW, what is the
> exactly meaning of each value of enum opt_type struct? Thanks a lot!

Not an interesting question, sorry.  Refer to the PPP source.  It is
truly fascinating and well coded.  Explore references to the option_t
typedef.  Take particular note of ->addr and where o_bool appears in the
source.  It is amazing.  Truly, amazing.  Use a capable editor and cross
referencing tool.  I use emacs with etags, but you might find something
else more appropriate.

--

-- 
James Cameron
--
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
the body of a message to majordomo <at> vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

James Carlson | 5 May 13:39

Re: about option_t

cyx_mail <at> foxmail.com writes:
> Which piece of code call the void *addr.

'addr' is a type-dependent value.  It's not necessarily called as a
function -- that only happens if the type is o_special,
o_special_noarg, or o_wild.

> some plugins uses this pointer to call functions when the plugin loads. BTW, what is the exactly meaning of
each value of enum opt_type struct? Thanks a lot!

The values should be relatively self-explanatory, if you read the code
in options.c or examine any of the code that uses the options.

  o_special_noarg - option is processed by a function call and
  consumes no other arguments.

  o_special - option processed by function call and consumes one more
  argument.

  o_bool - option address is a 'bool' to be set to the lower 8 bits of
  'flags'.  If 'addr2' is set, use the OPT_A2{COPY,CLR,CLRB,OR) to
  determine what is done to that value.

  o_int - parse an integer, offset by low 8 bits of 'flags', and store
  in 'addr'.

  o_wild - special self-identifying option (no keyword; parsed by
  appearance).  Used only for IPv4 addresses, device name, and tty
  speed.

(Continue reading)


Gmane