Home | History | Annotate | Download | only in android-clat

Lines Matching full:payload_size

133 void dump_udp_generic(const struct udphdr *udp, uint32_t temp_checksum, const char *payload, size_t payload_size) {
137 temp_checksum = ip_checksum_add(temp_checksum, payload, payload_size);
148 void dump_udp(const struct udphdr *udp, const struct iphdr *ip, const char *payload, size_t payload_size) {
150 temp_checksum = ipv4_pseudo_header_checksum(ip, sizeof(*udp) + payload_size);
151 dump_udp_generic(udp, temp_checksum, payload, payload_size);
155 void dump_udp6(const struct udphdr *udp, const struct ip6_hdr *ip6, const char *payload, size_t payload_size) {
157 temp_checksum = ipv6_pseudo_header_checksum(ip6, sizeof(*udp) + payload_size, IPPROTO_UDP);
158 dump_udp_generic(udp, temp_checksum, payload, payload_size);
162 void dump_tcp_generic(const struct tcphdr *tcp, const char *options, size_t options_size, uint32_t temp_checksum, const char *payload, size_t payload_size) {
169 temp_checksum = ip_checksum_add(temp_checksum, payload, payload_size);
203 void dump_tcp(const struct tcphdr *tcp, const struct iphdr *ip, const char *payload, size_t payload_size, const char *options, size_t options_size) {
206 temp_checksum = ipv4_pseudo_header_checksum(ip, sizeof(*tcp) + options_size + payload_size);
207 dump_tcp_generic(tcp, options, options_size, temp_checksum, payload, payload_size);
211 void dump_tcp6(const struct tcphdr *tcp, const struct ip6_hdr *ip6, const char *payload, size_t payload_size, const char *options, size_t options_size) {
214 temp_checksum = ipv6_pseudo_header_checksum(ip6, sizeof(*tcp) + options_size + payload_size, IPPROTO_TCP);
215 dump_tcp_generic(tcp, options, options_size, temp_checksum, payload, payload_size);