C Board  

Go Back   C Board > Platform Specific Boards > Linux Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 10-07-2008, 09:09 PM   #1
Registered User
 
Join Date: Oct 2008
Posts: 6
3way handshake raw sockets

Hi
I'm trying to use raw sockets to connect to a server, when my program sends a syn packet the server repleys with a syn ack , but then my computer sends a rst.
I think the kernel thinks the port doesn't have anything running on it and close the handshake.

Thanks
linuxtest is offline   Reply With Quote
Old 10-08-2008, 07:28 AM   #2
critical genius
 
MK27's Avatar
 
Join Date: Jul 2008
Location: SE Queens
Posts: 5,228
this might help

Linux raw socket programming
__________________

"A man can't just sit around." -- Larry Walters
MK27 is offline   Reply With Quote
Old 10-11-2008, 05:29 PM   #3
Senior software engineer
 
brewbuck's Avatar
 
Join Date: Mar 2007
Location: Portland, OR
Posts: 5,768
Quote:
Originally Posted by linuxtest View Post
Hi
I'm trying to use raw sockets to connect to a server, when my program sends a syn packet the server repleys with a syn ack , but then my computer sends a rst.
I think the kernel thinks the port doesn't have anything running on it and close the handshake.

Thanks
You can't expect the kernel to stop doing its normal kernel things (like running the TCP/IP stack in the background) just because you start doing something weird like sending raw packets... It has no idea you are doing that.
__________________
"Congratulations on your purchase. To begin using your quantum computer, set the power switch to both off and on simultaneously." -- raftpeople@slashdot
brewbuck is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Raw Sockets Help jaysonturner C Programming 4 05-08-2007 02:37 PM
Raw Sockets and SP2... Devil Panther Networking/Device Communication 11 08-12-2005 04:52 AM
Raw Sockets problem. Mad_guy C Programming 3 07-03-2005 03:14 PM
raw sockets? Devil Panther Networking/Device Communication 2 11-01-2003 01:23 AM
Problem with Raw Sockets Encrypted Linux Programming 2 04-30-2003 04:38 PM


All times are GMT -6. The time now is 08:41 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22