Okay here we go:
With raw sockets you are suppose to be able to access the hole packet. without any adding data from the kernel.
But why do then have to give the destination and port, when calling sendto().
Thanks in advance!Code:sendto(int sockfd, const void *msg, int len, unsigned int flags,
const struct sockaddr *to, socklen_t tolen);
/* As you can see, this call is basically the same as the call to send() with the addition
of two other pieces of information. to is a pointer to a struct sockaddr (which you'll
probably have as a struct sockaddr_in and cast it at the last minute) which contains the
destination IP address and port. tolen, an int deep-down, can simply be set to sizeof *to or
sizeof(struct sockaddr). */