Skip to contentSkip to conversation

my god , I have tried to solve this problem for 2 days!

DISCUSSION cyx_mail 2 participants 2 messages May 16, 2008 – May 19, 2008 PPP protocol drivers and compressors

lore
Share & tools
lore

cyx_mail

author
#0 lore raw

I just want to know, can I use IPC in pppd and pppoe-server?
I put some code in both pppoe-server and pppd , let them communicate with each other. using shared memory. shmget functions etc.

But pppoe-server can't get the right data that pppd has write to the shared memory. I have test my lib functions and it just work right. So , why ? is it chance that I can't use IPC in pppd? my god ,I have worked on this problem for 2 days :(

#1 lore raw

I know nothing that would prevent IPC from working between a pppd plugin and another program. IPC shmget technique needs to have the same keys, and the same process UID and GID. Check that. Use ipcs to view the IPC shared memory segments created.

Signature · 3 lines
James Cameron                         http://quozl.netrek.org/
HP Open Source, Volunteer             http://opensource.hp.com/
PPTP Client Project, Release Engineer http://pptpclient.sourceforge.net/