Sockets: RAW or STREAM
Posted
by
user1415536
on Stack Overflow
See other posts from Stack Overflow
or by user1415536
Published on 2013-11-07T09:50:52Z
Indexed on
2013/11/07
9:53 UTC
Read the original article
Hit count: 234
May be the question is a bit stupid, but I'll ask it. I read a lot about raw sockets in network, have seen several examples. So, basically with raw sockets it's possible to build own stack of headers, like stack = IP + TCP/UDP + OWN_HEADER. My question is, is it possible to get some kind of ready frame of first two(IP + TCP/UDP) from the linux kernel and then just append own header to them? The operating system in question is linux and the language is C.
I cannot find any function which can do such a thing, but may be I'm digging in a wrong direction.
© Stack Overflow or respective owner