Skip to content

Instantly share code, notes, and snippets.

View johnzeng's full-sized avatar

Zengda johnzeng

View GitHub Profile
@johnzeng
johnzeng / BadListener.c
Created February 23, 2018 08:07
This is a bug test for reproducing tcp syn+ack retransmission bug, this is not going to work good
#include <netinet/in.h> // for sockaddr_in
#include <sys/types.h> // for socket
#include <sys/socket.h> // for socket
#include <stdio.h> // for printf
#include <stdlib.h> // for exit
#include <string.h> // for bzero
/*
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>