android Programming Glossary: ihl
iptables in android http://stackoverflow.com/questions/4577268/iptables-in-android mytcp doff 4 20 int tcpdatalen total_len mytcp doff 4 myip ihl 4 pseudohead.src_addr myip saddr pseudohead.dst_addr myip daddr.. tcp_pseudo sizeof struct tcphdr unsigned char myip myip ihl 4 sizeof struct tcphdr tcpopt_len memcpy unsigned char tcp sizeof.. tcphdr tcphdrp struct tcphdr u_int8_t iphdrp iphdrp ihl 2 return get_tcp_checksum iphdrp tcphdrp static void set_tcp_checksum..
iptables in android http://stackoverflow.com/questions/4577268/iptables-in-android mytcp __u16 total_len ntohs myip tot_len int tcpopt_len mytcp doff 4 20 int tcpdatalen total_len mytcp doff 4 myip ihl 4 pseudohead.src_addr myip saddr pseudohead.dst_addr myip daddr pseudohead.zero 0 pseudohead.proto IPPROTO_TCP pseudohead.length.. sizeof struct tcphdr memcpy unsigned char tcp sizeof struct tcp_pseudo sizeof struct tcphdr unsigned char myip myip ihl 4 sizeof struct tcphdr tcpopt_len memcpy unsigned char tcp sizeof struct tcp_pseudo sizeof struct tcphdr tcpopt_len unsigned.. static u_int16_t tcp_checksum struct iphdr iphdrp struct tcphdr tcphdrp struct tcphdr u_int8_t iphdrp iphdrp ihl 2 return get_tcp_checksum iphdrp tcphdrp static void set_tcp_checksum struct iphdr iphdrp struct tcphdr tcphdrp struct..
|