7. static inline void TCP_ECN_create_request(struct request_sock *req, const struct sk_buff *skb) 8. { 9. const struct tcphdr *th = tcp_hdr(skb); 10. if (sysctl_tcp_ecn && th->ece && th->cwr && INET_ECN_is_not_ect(TCP_SKB_CB(skb)->ip_dsfield)) 11. inet_rsk(req)->...
* If we receive a SYN packet with these bits set, it means a network is playing bad games * with TOS bits. In order to avoid possible false congestion notifications, we disable * TCP ECN negociation. */ staticinlinevoidTCP_ECN_create_request(struct request_sock *req,conststruct sk_buff...
在成功发送, 如果报文小于mss,跟新这个字段 主要用来判断是否启用 nagle 算法*/ u32 rcv_tstamp;/* timestamp of last received ACK (for keepalives) 最近一次收到ack的时间 用于 tcp 保活*/ u32 lsndtime;/* timestamp of last sent data packet (for restart window) 最近一次发送 数据包时间*/ u32 ...
在成功发送, 如果报文小于mss,跟新这个字段 主要用来判断是否启用 nagle 算法*/ u32 rcv_tstamp;/* timestamp of last received ACK (for keepalives) 最近一次收到ack的时间 用于 tcp 保活*/ u32 lsndtime;/* timestamp of last sent data packet (for restart window) 最近一次发送 数据包时间*/ u32 ...
int16 packetType; int32 msgId; } __attribute__((packed)); DEFINE_PACKET_HEADER(ZC_SKILLMSG, 0x215); // NetBSD 5 and Solaris don't like pragma pack but accept the packed attribute #if !defined( sun ) && ( !defined( __NETBSD__ ) || __NetBSD_Version__ >= 600000000 ) #pragma ...
DEFINE_PACKET_HEADER(CZ_REQ_ITEMCOMPOSITION, 0x17c);struct PACKET_CZ_LOCALBROADCAST{ int16 packetType; uint16 packetSize; char message[]; } __attribute__((packed)); DEFINE_PACKET_HEADER(CZ_LOCALBROADCAST, 0x19c);// NetBSD 5 and Solaris don't like pragma pack but accept the packed attr...
void STRUCT_INIT(handle, model_t umodel); void STRUCT_SET_HANDLE(handle, model_t umodel, void *addr); STRUCT_FGET(handle, field); STRUCT_FGETP(handle, field); STRUCT_FSET(handle, field, val); STRUCT_FSETP(handle, field, val); <typeof field> *STRUCT_FADDR(handle, field); struct...
void STRUCT_SET_HANDLE(handle, model_t umodel, void *addr); STRUCT_FGET(handle, field); STRUCT_FGETP(handle, field); STRUCT_FSET(handle, field, val); STRUCT_FSETP(handle, field, val); <typeof field> *STRUCT_FADDR(handle, field); struct structname *STRUCT_BUF(handle); size_t SIZE...
result = bt_sock.connect_ex((addr,1))# PSM 1 - Service Discoverytry:# Get ConnInforeqstr = struct.pack("6sB17s", bt.str2ba(addr), bt.ACL_LINK,"\0"*17) request = array.array("c", reqstr ) handle = fcntl.ioctl(hci_fd, bt.HCIGETCONNINFO, request,1) ...
matter what. Remove them by allocating GFP_ATOMIC memory on demand. In the case of allocation error, we only issue error msg in the *alloc_{pc,rq} thus postponing the final error handling and cleanup in their callers. Packet command and ...