Re: Raw Sockets + Userland TCP Kernel Resetting Packet

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi!

On 10:57 Wed 25 Nov     , Bradley Falzon wrote:
> Hi,
> 
> I'm writing a program to assist in learning/debugging tcp stacks, it
> creates a raw socket and replicates an exceedingly simple tcp stack. By
> which I mean, it sends and receives packets, setting correct flags,
> payloads etc.
> 
> One difficulty I've come across, after I've created a raw socket and sent
> my syn packet, when the syn+ack packet arrives from the peer, my program
> receives it fine - but the kernel also resets the connection.

You might be able to use the tun/tap device. It basically creates a network
interface with a file descriptor of your program being the other side of it.
See Documentation/networking/tuntap.txt (in the kernel source) for more
details.

Is this an option for you?

	-Michi
-- 
programing a layer 3+4 network protocol for mesh networks
see http://michaelblizek.twilightparadox.com

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux