/external/tcpdump/ |
print-dccp.c | 66 union phu { union 75 } phu; local 79 phu.ph.mbz = 0; 80 phu.ph.len = htons(len); 81 phu.ph.proto = IPPROTO_DCCP; 82 memcpy(&phu.ph.src, &ip->ip_src.s_addr, sizeof(u_int32_t)); 84 memcpy(&phu.ph.dst, &ip->ip_dst.s_addr, sizeof(u_int32_t)); 86 phu.ph.dst = ip_finddst(ip); 88 sp = &phu.pa[0]; 107 } phu; local [all...] |
print-tcp.c | 118 union phu { union 127 } phu; local 131 phu.ph.len = htons((u_int16_t)len); 132 phu.ph.mbz = 0; 133 phu.ph.proto = IPPROTO_TCP; 134 memcpy(&phu.ph.src, &ip->ip_src.s_addr, sizeof(u_int32_t)); 136 memcpy(&phu.ph.dst, &ip->ip_dst.s_addr, sizeof(u_int32_t)); 138 phu.ph.dst = ip_finddst(ip); 140 sp = &phu.pa[0]; 161 } phu; local [all...] |
print-udp.c | 291 union phu { union 300 } phu; local 304 phu.ph.len = htons((u_int16_t)len); 305 phu.ph.mbz = 0; 306 phu.ph.proto = IPPROTO_UDP; 307 memcpy(&phu.ph.src, &ip->ip_src.s_addr, sizeof(u_int32_t)); 309 memcpy(&phu.ph.dst, &ip->ip_dst.s_addr, sizeof(u_int32_t)); 311 phu.ph.dst = ip_finddst(ip); 313 sp = &phu.pa[0]; 334 } phu; local [all...] |
print-icmp6.c | 207 } phu; local 210 memset(&phu, 0, sizeof(phu)); 211 phu.ph.ph_src = ip6->ip6_src; 212 phu.ph.ph_dst = ip6->ip6_dst; 213 phu.ph.ph_len = htonl(len); 214 phu.ph.ph_nxt = IPPROTO_ICMPV6; 217 for (i = 0; i < sizeof(phu.pa) / sizeof(phu.pa[0]); i++) 218 sum += phu.pa[i] [all...] |