Category : raw-sockets

I am running a code which opens a raw socket inside a docker container with kubernetes as the orchestrator. Following is my sample code: #include <stdio.h> #include <sys/socket.h> #include <stdlib.h> #include <errno.h> #include <netinet/tcp.h> #include <netinet/ip.h> #include <arpa/inet.h> #include <unistd.h> int main (void) { //Create a raw socket int s = socket (AF_INET, SOCK_RAW, IPPROTO_SCTP); ..

Read more