Is there a website that provide SYN packets from various operating system? - tcp

I am looking for such a website that have SYN packets from various operating systems. Any ideas?

nmap's os db. Be warned, they're serious about the licensing restrictions.

Related

TinyOS UDP support?

Does TinyOS provide support for the UDP protocol ?
We are trying to create an IP Phone using a Micro-controller and were thinking of installing TinyOS on it.
Any help is appreciated!
TinyOS has an IP stack (6lowPan) called BLIP which supports UDP and TCP although I have never used BLIP personally. See the link HERE for more information. A good point to start would be to look at the UDP-echo application in apps folder of the TinyOS distribution.

Running program in SCTP

I need to create a program that sends messages, using SCTP, from host A to host B.
The problem is... I don't know how do run this program. How can I, using language C, send messages from one host to another.
Any vague answer is welcomed.
SCTP is a transport layer protocol, and the operating system has built-in transport layer protocols, including SCTP and you get to choose what protocol it uses.
But I think here is what you're looking for: http://simplestcodings.blogspot.com/2010/08/sctp-server-client-implementation-in-c.html
a demo implementation of SCTP above tcp/ip.

Is there an article describing how to implement transport provider of the early UNIX?

I am writing a simple OS with the network feature. But i don't know how to begin the networt part. the Linux Device Driver is not easy to read.
Could you give me some matearials or suggestions?
Take a look at lwIP - A Lightweight TCP/IP stack. It implements all necessary functionality to send/receive UDP datagrams and to establish TCP connections.
lwIP is licenced under the BSD licence, so you may use it even in non-opensource project.

data path (travel) of tcp data from "write" syscall downto I/O registers programming

Is there a good overview of tcp data path in Linux (2.6, not 2.4 if the path actually differ)? Where is a packet on different stages of tcp/ip stack handling?
How packet is packed to tcp segment, then ip packet. How it is transmitted to network card? (with series of I/O regs write and DMA?) Is it transmitted to network card in the "write" syscall handler (with some deep callstack) or is it transmitted at some other moment?
http://www.linuxfoundation.org/collaborate/workgroups/networking/kernel_flow
I think this is what you want. It shows the process all the way from sendmsg() to dev_hard_start_xmit(), which is where the net stack passes the packet off to the NIC driver.
Try this: The Linux TCP/IP Stack: Networking for Embedded Systems
The Linux TCP/IP Stack: Networking for
Embedded Systems /by Thomas Herbert
(Author) .The Linux TCP/IP Stack:
Networking for Embedded Systems
provides an in-depth guide to
implementing and using the Linux
TCP/IP stack in embedded systems
projects. It begins with a general
overview of TCP/IP networking, with
background information on applicable
networking standards. From there, it
details the TCP/IP implementation in
Linux 2.6 by following a packet of
data as it flows through the stack
from the sending system, out the wire,
and back through the input side of the
stack in the receiving machine. This
unique approach gives programmers an
"inside" look at the entire process.
Throughout the text, topics of
particular interest to engineers
implementing embedded systems are
discussed, such as sockets, network
interfaces, application layer
protocols, and practical
considerations. This is a great
resource for embedded systems
programmers and engineers, as well as
networking professionals interested in
learning more about the implementation
of Linux TCP/IP in the 2.6 kernel.

Linux TCP stack packet injection

Could i inject packets to Linux TCP stack without modifying the ethernet driver? Could i do this with using a library or sth ?
Thank you,
If by 'inject packets to Linux TCP stack' you mean send some data that the Linux kernel will treat as a frame coming from an Ethernet interface then you can use a 'tap' device. If an IP packet (layer 3) is good enough, then use a 'tun' device.
http://en.wikipedia.org/wiki/TUN/TAP
http://www.kernel.org/pub/linux/kernel/people/marcelo/linux-2.4/Documentation/networking/tuntap.txt
Libnet
Libnet is a generic networking API that provides access to several protocols. It is not designed as a 'all in one' solution to networking. Currently many features that are common in some network protocols are not available with Libnet, such as streaming via TCP/IP. We feel that Libnet should not provide specific features that are possible in other protocols. If we restrict Libnet to the minimal needed to communicate (datagram/packets) then this allows it to support more interfaces.
Otherwise, if you're just wondering about injecting hand-crafted packets into the network, read the man pages and look for online help with raw sockets. Some good places to start are man 7 raw, man packet, and there are some ok tutorials at security-freak.net, though the code there is not written particularly well for my tastes.

Resources