¡@

Home 

2014/10/16 ¤W¤È 08:19:52

android Programming Glossary: myip

iptables in android

http://stackoverflow.com/questions/4577268/iptables-in-android

~sum tcp checksum long get_tcp_checksum struct iphdr myip struct tcphdr mytcp __u16 total_len ntohs myip tot_len int tcpopt_len.. iphdr myip struct tcphdr mytcp __u16 total_len ntohs myip tot_len int tcpopt_len mytcp doff 4 20 int tcpdatalen total_len.. mytcp doff 4 20 int tcpdatalen total_len mytcp doff 4 myip ihl 4 pseudohead.src_addr myip saddr pseudohead.dst_addr myip..

iptables in android

http://stackoverflow.com/questions/4577268/iptables-in-android

32 bit sum to 16 bits while sum 16 sum sum 0xffff sum 16 return ~sum tcp checksum long get_tcp_checksum struct iphdr myip struct tcphdr mytcp __u16 total_len ntohs myip tot_len int tcpopt_len mytcp doff 4 20 int tcpdatalen total_len mytcp doff.. sum 16 return ~sum tcp checksum long get_tcp_checksum struct iphdr myip struct tcphdr 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.. tcphdr 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..