C++Talk.NET Forum Index C++Talk.NET
C++ language newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Socket Programming IPSec

 
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ language (comp.lang.c++)
View previous topic :: View next topic  
Author Message
Babar Qaisrani
Guest





PostPosted: Sun Jun 27, 2004 4:28 pm    Post subject: Socket Programming IPSec Reply with quote



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
Back to top
John Harrison
Guest





PostPosted: Sun Jun 27, 2004 6:06 pm    Post subject: Re: Socket Programming IPSec Reply with quote




"Babar Qaisrani" <babarq (AT) gmail (DOT) com> wrote

Quote:
Hi
I have a query regarding socket programming .

And this is C++ group. Please this groups welcome message before posting
again. http://www.slack.net/~shiva/welcome.txt. It might tell you where you
should be posting your question.

john



Back to top
Babar Qaisrani
Guest





PostPosted: Sun Jun 27, 2004 10:09 pm    Post subject: Re: Socket Programming IPSec Reply with quote



oops sorry !

"John Harrison" <john_andronicus (AT) hotmail (DOT) com> wrote

Quote:
"Babar Qaisrani" <babarq (AT) gmail (DOT) com> wrote in message
news:1bcc112e.0406270828.36e554a3 (AT) posting (DOT) google.com...
Hi
I have a query regarding socket programming .

And this is C++ group. Please this groups welcome message before posting
again. http://www.slack.net/~shiva/welcome.txt. It might tell you where you
should be posting your question.

john

Back to top
Prateek R Karandikar
Guest





PostPosted: Sun Jun 27, 2004 10:39 pm    Post subject: Re: Socket Programming IPSec Reply with quote

[email]babarq (AT) gmail (DOT) com[/email] (Babar Qaisrani) wrote in message news:<1bcc112e.0406270828.36e554a3 (AT) posting (DOT) google.com>...
Quote:
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

Your post has no Standard C++ content, and is thus off-topic.

-- --
Abstraction is selective ignorance.
-Andrew Koenig
-- --

Back to top
Display posts from previous:   
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ language (comp.lang.c++) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.