Besides, please consider to submit the patch to Google
if it's a bug of the bionic.
2011/11/7 William Esser <markes...@gmail.com>:
--
Chih-Wei
Android-x86 project
http://www.android-x86.org
2011/11/11 William Esser <markes...@gmail.com>:
> Yes,
>
> The header loaded in during the linux build kernel/include/linux/
> if_pppox.h has the following
> defines
> /
> ************************************************************************
> * Protocols supported by AF_PPPOX
> */
> #define PX_PROTO_OE 0 /* Currently just PPPoE */
> #define PX_PROTO_OL2TP 1 /* Now L2TP also */
> #define PX_PROTO_PPTP 2
> #define PX_PROTO_OLAC 3
> #define PX_PROTO_OPNS 4
> #define PX_MAX_PROTO 5
> *****************************************************
>
> in bionic/libc/kernel/common/if_pppolac.h
> #define PX_PROTO_OLAC 2
>
> in bionic/libc/kernel/common/if_pppopns.h
> #define PX_PROTO_OPNS 3
>
> when using connect(PPPOX, call in pptp.c in external/mtpd
> for pptp it sends a PX_PROTO_OPNS = 2 (but pppox should send a 4)
> and returns a INVALID PARAMETER error
>
> when using connect(PPPOX, call in l2tp.c in external/mtpd
> for l2tp it sends a PX_PROTO_OLAC = 2 (but pppox should send a 3)
--
And in socket.hstatic int create_pppox()
{
int pppox;
log_print(INFO, "Creating PPPoX socket");
pppox = socket(AF_PPPOX, SOCK_DGRAM, PX_PROTO_OPNS);
if (pppox == -1) {
log_print(FATAL, "Socket() %s", strerror(errno));
exit(SYSTEM_ERROR);
} else {
struct sockaddr_pppopns address = {
.sa_family = AF_PPPOX,
.sa_protocol = PX_PROTO_OPNS,
.tcp_socket = the_socket,
.local = local,
.remote = remote,
};
if (connect(pppox, (struct sockaddr *)&address, sizeof(address)) != 0) {
log_print(FATAL, "Connect() %s", strerror(errno));
exit(SYSTEM_ERROR);
}
}
return pppox;
}
I'm not sure how to investigate this further... but having vpn working can be quite handy./* Create a new socket of type TYPE in domain DOMAIN, using
protocol PROTOCOL. If PROTOCOL is zero, one is chosen automatically.
Returns a file descriptor for the new socket, or -1 for errors. */
extern int socket (int __domain, int __type, int __protocol) __THROW;
http://www.android-x86.org
--
You received this message because you are subscribed to the Google Groups "Android-x86" group.
To post to this group, send email to andro...@googlegroups.com.
To unsubscribe from this group, send email to android-x86...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-x86?hl=en.
2011/12/20 Shady Rasheed <rashee...@gmail.com>: