473,473 Members | 1,977 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Socket Programming IPSec

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
Jul 22 '05 #1
3 7828

"Babar Qaisrani" <ba****@gmail.com> wrote in message
news:1b**************************@posting.google.c om...
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
Jul 22 '05 #2
oops sorry !

"John Harrison" <jo*************@hotmail.com> wrote in message news:<2k*************@uni-berlin.de>...
"Babar Qaisrani" <ba****@gmail.com> wrote in message
news:1b**************************@posting.google.c om...
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

Jul 22 '05 #3
ba****@gmail.com (Babar Qaisrani) wrote in message news:<1b**************************@posting.google. com>...
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
-- --
Jul 22 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: rbt | last post by:
I don't fully understand sockets, I just know enough to be dangerous. The below is not detected by nmap, but is affected by iptables or ipsec. Can anyone explain why that is? s =...
5
by: John Sheppard | last post by:
Hi all, I am not sure that I am posting this in the right group but here it goes anyway. I am new to socket programming and I have been searching on the internet to the questions I am about to pose...
1
by: John Sheppard | last post by:
Thanks to everyone that responded to my previous Socket Programming question. Now I have run into some behavior that I don't quite understand. Programming environment. VS.NET 2003, C#, Windows...
3
by: bb | last post by:
I am trying to find out how to control an IPSEC policy - mainly add a new IP to an existing policy - from C# code. My SQL Server installation is getting pounded by brute force password attack for...
8
by: Sharon | last post by:
Hi all. How can i secure socket communications? Is it possible to use ssl? Thanks, Sharon.
2
by: djc | last post by:
I read a network programming book (based on framework 1.1) which indicated that you should 'never' use the RecieveTimeout or the SendTimeout 'socket options' on TCP sockets or you may loose data. I...
8
by: =?Utf-8?B?Sm9obg==?= | last post by:
Hi all, I am new to .net technologies. ASP.NET supports socket programming like send/receive in c or c++? I am developing web-site application in asp.net and code behind is Visual C#. In...
1
by: TampaWebDevelopment | last post by:
I use IPSec to create a filter list of IP addresses that I ban from accessing one of my servers. Right now, I use the MMC to manage an existing IP Filter List; adding a new filter to the list each...
1
by: =?Utf-8?B?Ry4gQ2FzYWJpYW5jYQ==?= | last post by:
I an trying to set up a VPN to access my office. My router only supports IPSec and the client Vista provides is based on PPTP. Is there any way to set up an IPSec client in VIsta and XP or do I...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.