¡@

Home 

2014/10/16 ¤W¤È 08:16:31

android Programming Glossary: iphdr

iptables in android

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

16 return ~sum tcp checksum long get_tcp_checksum struct iphdr myip struct tcphdr mytcp __u16 total_len ntohs myip tot_len.. tcp totaltcp_len static u_int16_t tcp_checksum struct iphdr iphdrp struct tcphdr tcphdrp struct tcphdr u_int8_t iphdrp.. totaltcp_len static u_int16_t tcp_checksum struct iphdr iphdrp struct tcphdr tcphdrp struct tcphdr u_int8_t iphdrp iphdrp..

iptables in android

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

Fold 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.. d data start u n tcpdatalen mytcp mytcp doff 4 return checksum tcp totaltcp_len 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.. start u n tcpdatalen mytcp mytcp doff 4 return checksum tcp totaltcp_len 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..