[OT] Raw socket programming

2006-10-01 Thread Bruno Carnazzi
Hi misc, For my own education, I'm writing in C a PPTP proxy for pf-driven NAT-boxes, based on libevent. A PPTP session is made of a TCP control connection and a GRE tunnel. I've got no trouble handling the control connection, but I don't know how to handle GRE packets. Actually, I bind a first

Re: [OT] Raw socket programming

2006-10-01 Thread Joachim Schipper
On Sun, Oct 01, 2006 at 04:25:42PM +0400, Bruno Carnazzi wrote: Hi misc, For my own education, I'm writing in C a PPTP proxy for pf-driven NAT-boxes, based on libevent. A PPTP session is made of a TCP control connection and a GRE tunnel. I've got no trouble handling the control connection,

Re: [OT] Raw socket programming

2006-10-01 Thread Bruno Carnazzi
2006/10/2, Joachim Schipper [EMAIL PROTECTED]: On Sun, Oct 01, 2006 at 04:25:42PM +0400, Bruno Carnazzi wrote: Hi misc, For my own education, I'm writing in C a PPTP proxy for pf-driven NAT-boxes, based on libevent. A PPTP session is made of a TCP control connection and a GRE tunnel. I've