WHOEVER WROTE THAT IS A DANGEROUS PSYCHOPATH

This commit is contained in:
Frank Denis 2015-11-04 02:05:12 +01:00
parent 158c766368
commit 8b8772f4f1

View File

@ -58,9 +58,11 @@ int tcp_write(int fd, char *buf, int len)
{ {
register char *ptr; register char *ptr;
/* \/ WHOEVER WROTE THAT IS A DANGEROUS PSYCHOPATH \/ */
ptr = buf - sizeof(short); ptr = buf - sizeof(short);
*((unsigned short *)ptr) = htons(len); *((unsigned short *)ptr) = htons(len);
/* /\ WHOEVER WROTE THAT IS A DANGEROUS PSYCHOPATH /\ */
len = (len & VTUN_FSIZE_MASK) + sizeof(short); len = (len & VTUN_FSIZE_MASK) + sizeof(short);
return write_n(fd, ptr, len); return write_n(fd, ptr, len);