Below you will find pages that utilize the taxonomy term “GFW”
GFW升级支持IPv6了?
从北京比赛回来,发现Google出现了链接被重置的情况……
一开始以为是he.net的IPv6隧道又掉了,但发现FlagFox那赫然写着2404:6800:8005::68…
试了几次之后才知道,GFW已经升级支持IPv6了…
EDIT 2012/11/12:
应该是偶然现象……目前he.net,sixxs和gogo6都测试过了,还是可以用的……
DNS客户端改进版
对[link2post id=”797″]上一个DNS客户端[/link2post]的简单改进。稍微封装了一下,同时修改了接收返回部分的代码,可以读到被GFW劫持域名的正确记录。
<br></br>#include <stdio.h><br></br>#include <stdlib.h><br></br>#include <string.h><br></br>#include <strings.h></strings.h></string.h></stdlib.h></stdio.h>
#include
#include
#include
#include <netdb.h>
#include <unistd.h></unistd.h></netdb.h>
#define DNSSERVER (“8.8.8.8”)
extern int errno;
struct DNSHeader{
short TranscationID;
short Flags;
short Questions;
short AnswerRRs;
short AuthorityRRs;
short AdditionalRRs;
}__attribute__((packed));
struct DNSQuery{
short Type;
short Class;
}__attribute__((packed));
struct DNSQueryFull{
char* domain;
short Type;
short Class;
}__attribute__((packed));