Socket Programming IPSec
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix Programming > Socket Programming IPSec




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Socket programming IPSec  
Babar Qaisrani


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
06-28-04 01:59 PM

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





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 09:00 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register