#36 send raw login packet directly to server

This commit is contained in:
Erik Ekman
2009-06-14 11:14:40 +00:00
committed by Erik Ekman
parent 950c0870b2
commit c92ed9bad8
4 changed files with 74 additions and 6 deletions

View File

@@ -43,6 +43,9 @@
#include "common.h"
/* The raw header used when not using DNS protocol */
const unsigned char raw_header[RAW_HDR_LEN] = { 0x10, 0xd1, 0x9e, 0x00 };
/* daemon(3) exists only in 4.4BSD or later, and in GNU libc */
#if !defined(WINDOWS32) && !(defined(BSD) && (BSD >= 199306)) && !defined(__GLIBC__)
static int daemon(int nochdir, int noclose)