4 Jun 03:17
cannot connect to pppoe socket
C.J <c.james.cj <at> gmail.com>
2008-06-04 01:17:37 GMT
2008-06-04 01:17:37 GMT
Hi all,
There is a test demo code for making a 'pppoe socket' and connect it. In my machine it cannot connect well but
some others not.
>>>>>
code below(some headers are useless here):
#include <linux/types.h>
#include <syslog.h>
#include <sys/ioctl.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/stat.h>
#include <linux/if.h>
#include <string.h>
#include <stdlib.h>
#include <errno.h>
#include <unistd.h>
#include <fcntl.h>
#include <signal.h>
#include <net/ethernet.h>
#include <net/if_arp.h>
#include <linux/ppp_defs.h>
#include <linux/in.h>
#include <linux/if_pppox.h>
int main(void)
{
struct sockaddr_pppox sp;
int sock;
/* Make the session socket */
(Continue reading)
RSS Feed