Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View allanjude's full-sized avatar

Allan Jude allanjude

View GitHub Profile
@allanjude
allanjude / which_os.c
Created October 18, 2017 16:14 — forked from sortie/which_os.c
Detect the operating system using UDP stack corner cases
#include <sys/socket.h>
#include <err.h>
#include <errno.h>
#include <netinet/in.h>
#include <stdio.h>
#include <string.h>
int main(void)
{