authentication

来自「这是一个关于linux下上外网的drcom1.4.4」· 代码 · 共 24 行

TXT
24
字号
struct drcom_authFor every UDP packet and every TCP connection, with the other end outside theISP network, we add authentication data.For UDP, the packet is prepended with this 16 byte data.For TCP, the first outgoing packet of every connection is preceded with this16 byte data.struct drcom_auth{  char drco[4];  u_int32_t servip;  u_int16_t servport;  u_int32_t hostip;  u_int16_t hostport;}  __attribute__ ((__packed__));drco is "Drco".the names servip, servport, hostip, hostport are just my inventions.

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?