Lines Matching refs:value
71 __type(value, __u64);
78 __type(value, __u16);
312 __u64 *value; in values_get_tcpipopts() local
314 value = bpf_map_lookup_elem(&values, &key); in values_get_tcpipopts()
315 if (value && *value != 0) { in values_get_tcpipopts()
317 *mss = (*value >> 32) & 0xffff; in values_get_tcpipopts()
319 *mss = *value & 0xffff; in values_get_tcpipopts()
320 *wscale = (*value >> 16) & 0xf; in values_get_tcpipopts()
321 *ttl = (*value >> 24) & 0xff; in values_get_tcpipopts()
333 __u64 *value; in values_inc_synacks() local
335 value = bpf_map_lookup_elem(&values, &key); in values_inc_synacks()
336 if (value) in values_inc_synacks()
337 __sync_fetch_and_add(value, 1); in values_inc_synacks()
346 __u16 *value; in check_port_allowed() local
348 value = bpf_map_lookup_elem(&allowed_ports, &key); in check_port_allowed()
350 if (!value) in check_port_allowed()
355 if (*value == 0) in check_port_allowed()
358 if (*value == port) in check_port_allowed()
603 __s64 value; in syncookie_handle_syn() local
619 value = bpf_csum_diff(0, 0, (void *)hdr->ipv4, hdr->ipv4->ihl * 4, 0); in syncookie_handle_syn()
620 if (value < 0) in syncookie_handle_syn()
622 if (csum_fold(value) != 0) in syncookie_handle_syn()
625 value = bpf_csum_diff(0, 0, (void *)hdr->tcp, hdr->tcp_len, 0); in syncookie_handle_syn()
626 if (value < 0) in syncookie_handle_syn()
629 hdr->tcp_len, IPPROTO_TCP, value) != 0) in syncookie_handle_syn()
634 value = bpf_tcp_raw_gen_syncookie_ipv4(hdr->ipv4, hdr->tcp, in syncookie_handle_syn()
638 value = bpf_csum_diff(0, 0, (void *)hdr->tcp, hdr->tcp_len, 0); in syncookie_handle_syn()
639 if (value < 0) in syncookie_handle_syn()
642 hdr->tcp_len, IPPROTO_TCP, value) != 0) in syncookie_handle_syn()
647 value = bpf_tcp_raw_gen_syncookie_ipv6(hdr->ipv6, hdr->tcp, in syncookie_handle_syn()
653 if (value < 0) in syncookie_handle_syn()
655 cookie = (__u32)value; in syncookie_handle_syn()
688 value = bpf_csum_diff(0, 0, (void *)hdr->tcp, hdr->tcp_len, 0); in syncookie_handle_syn()
689 if (value < 0) in syncookie_handle_syn()
696 value); in syncookie_handle_syn()
699 value = bpf_csum_diff(0, 0, (void *)hdr->ipv4, sizeof(*hdr->ipv4), 0); in syncookie_handle_syn()
700 if (value < 0) in syncookie_handle_syn()
702 hdr->ipv4->check = csum_fold(value); in syncookie_handle_syn()
708 value); in syncookie_handle_syn()