All of lore.kernel.org
 help / color / mirror / Atom feed
* ppp
@ 2009-11-12 13:58 Ryan Raasch
  2009-11-12 18:37 ` ppp Denis Kenzior
  0 siblings, 1 reply; 23+ messages in thread
From: Ryan Raasch @ 2009-11-12 13:58 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 639 bytes --]

Hello,

We need a ppp interface for our modem. I was told on the chat forum that 
a tap/tun device was to be used. Has anyone else started with this or 
thought how to implement this?

After reading briefly the code from pppd, the implementation, for a 
first draft, is pretty straight forward (w/o encryption, etc. in 
userspace). "Just" dial the apn, and hand over the tty fd to ppp via ioctl.

Steps (borrowed from pppd):

1. Dial the apn (in ofonod).
2. Some synchronization code.
3. hand over tty fd to ppp driver via ioctl. the IP.

I know i am simplifying the process.

Is this the way to go?


Regards,
Ryan

^ permalink raw reply	[flat|nested] 23+ messages in thread
* PPP
@ 2002-10-22 16:17 Pooja Nagpal
  2002-10-23 12:18 ` PPP Harry Kalogirou
  0 siblings, 1 reply; 23+ messages in thread
From: Pooja Nagpal @ 2002-10-22 16:17 UTC (permalink / raw)
  To: linux-8086

Hi!

Sorry for the slow replies!

I had something like interrupts(like Blaz Antonic suggested) in mind instead of polling. 

I was also wondering what would happen if packets came in faster than we can process. Will i lose
the packets.When I tested the PPP code in Linux before trying it on ELKS, I somehow seemed to be
getting empty frames etc. The same code when complied for ELKS worked fine. I am not sure what the
problem was. 

I don't think the options negotiated in the LCP are 'do and forget'. I think the link properties
need to stored. pppd could just negotiate options, store and exit. The network layer specific NCP
could then take over but I am not sure where it goes. If its in the kernel, how should i go about
it?

Thanks,
Pooja

__________________________________________________
Do you Yahoo!?
Y! Web Hosting - Let the expert host your web site
http://webhosting.yahoo.com/

^ permalink raw reply	[flat|nested] 23+ messages in thread
* ppp
@ 2002-05-06 22:23 Russell Coker
  2002-05-07  3:43 ` ppp John Summerfield
  2002-05-07 14:22 ` ppp Stephen Smalley
  0 siblings, 2 replies; 23+ messages in thread
From: Russell Coker @ 2002-05-06 22:23 UTC (permalink / raw)
  To: SE Linux

It is common to install pppd in such a fashion that it can be run as 
"pppd call server" by a regular user.

The problem is that it often starts daemons from it's ip-up script once it 
connects, and such daemons aren't allowed to be in user_r!

I notice that the policy directive for doing an automatic role transition is 
now deprecated.

I am thinking of writing a pppd wrapper program which runs it as 
"system_u:system_r:pppd_t", what do you think?

-- 
If you send email to me or to a mailing list that I use which has >4 lines
of legalistic junk at the end then you are specifically authorizing me to do
whatever I wish with the message and all other messages from your domain, by
posting the message you agree that your long legalistic sig is void.

--
You have received this message because you are subscribed to the selinux list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

^ permalink raw reply	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2009-11-15  9:09 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-12 13:58 ppp Ryan Raasch
2009-11-12 18:37 ` ppp Denis Kenzior
2009-11-12 18:42   ` ppp Ryan Raasch
2009-11-12 19:39   ` ppp Chris Pitchford
2009-11-13 11:31     ` ppp =?unknown-8bit?q?R=C3=A9mi?= Denis-Courmont
2009-11-13 11:53       ` ppp Chris Pitchford
2009-11-14 18:50         ` ppp Andrzej Zaborowski
2009-11-14 19:26           ` ppp Chris Pitchford
2009-11-15  9:09             ` ppp =?unknown-8bit?q?R=C3=A9mi?= Denis-Courmont
2009-11-13 12:02     ` ppp Marcel Holtmann
2009-11-13 12:13       ` ppp Chris Pitchford
2009-11-13 12:23         ` ppp Marcel Holtmann
2009-11-13 11:30   ` ppp =?unknown-8bit?q?R=C3=A9mi?= Denis-Courmont
  -- strict thread matches above, loose matches on Subject: below --
2002-10-22 16:17 PPP Pooja Nagpal
2002-10-23 12:18 ` PPP Harry Kalogirou
2002-05-06 22:23 ppp Russell Coker
2002-05-07  3:43 ` ppp John Summerfield
2002-05-07  4:57   ` ppp Russell Coker
2002-05-07 14:22 ` ppp Stephen Smalley
2002-05-08  0:28   ` ppp Russell Coker
2002-05-08 13:13     ` ppp Stephen Smalley
2002-05-09  4:41       ` ppp Russell Coker
2002-05-09 13:48         ` ppp Stephen Smalley

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.