Xiaodan Tang(deleted)
|
RE: PPP instance number corresponding to a serial port
|
Xiaodan Tang(deleted)
01/20/2009 9:54 AM
post20384
|
RE: PPP instance number corresponding to a serial port
Once pppd brought up an interface, /etc/ppp/ip-up will be spawn()'d with
these paramaters:
interface-name tty-name speed local-ip remote-ip ipparm
So you can prepare your own /etc/ppp/ip-up shell script/executable, got
your
"interface-name"/"tty-name" pair, and then store them somewhere for
future use.
When pppd goes down, /etc/ppp/ip-down will be spawn()'d with same
paramaters.
-xtang
> -----Original Message-----
> From: Goutam Ullas [mailto:community-noreply@qnx.com]
> Sent: Tuesday, January 20, 2009 9:44 AM
> To: drivers-networking
> Subject: Re: PPP instance number corresponding to a serial port
>
> My intention is to get the network traffic information(viz.
> no of bytes and packets that are sent/received) on a
> particular serial port over which ppp communication is
> happening. However, there are multiple serial ports (ser1,
> ser2, ser3 etc) each associated with a specific ppp
> instance(ppp0, ppp1, ppp2 etc). If I have the information
> about which ppp instance is running on which serial port (eg
> ppp0 on ser3, ppp1 on ser1 etc) then I can use the ppp
> instance name (eg ppp0) associated with a particular serial
> port (eg ser3) to get the traffic information on that serial port.
>
> _______________________________________________
> Networking Drivers
> http://community.qnx.com/sf/go/post20380
>
>
|
|
|