Unix Programming - Socket Programming IPSec

This is Interesting: Free IT Magazines  
Home > Archive > Unix Programming > June 2004 > Socket Programming IPSec





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Socket Programming IPSec
Babar Qaisrani

2004-06-28, 8:59 am

Hi
I have a query regarding socket programming . im trying to create a
dummy IPSec (ESP)header Packet . My Packet looks like
<code>
struct mypkt
{
struct iphdr ip;
struct _myesp esp;
struct tcphdr tcp;
};
and
struct _myesp {
u_int32_t esp_spi; /* ESP */
u_int32_t esp_seq; /* Sequence number */
u_int32_t esp_iv; /* Sequence number */
u_int8_t esp_padsize;
u_int8_t esp_next;
u_int32_t esp_ah; /* Sequence number */
};
</code>

But the problem is that when i send a socket using RAW socket , in
ethereal it shows IP -ESP ONLY . doesnt shows up the TCP header .
while testing a Normal IPSec implementation shows up all three layers.

Lemme know if i should paste complete code.
Any help is appreciated
Thanks
Bob
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com