Home
last modified time | relevance | path

Searched refs:ip_len (Results 1 – 13 of 13) sorted by relevance

/linux/tools/perf/util/intel-pt-decoder/
H A Dintel-pt-pkt-decoder.c447 int ip_len; in intel_pt_get_ip() local
453 ip_len = 0; in intel_pt_get_ip()
458 ip_len = 2; in intel_pt_get_ip()
464 ip_len = 4; in intel_pt_get_ip()
471 ip_len = 6; in intel_pt_get_ip()
477 ip_len = 8; in intel_pt_get_ip()
486 return ip_len + 1; in intel_pt_get_ip()
/linux/fs/nfs/
H A Ddns_resolve.c26 int ip_len; in nfs_dns_resolve_name() local
28 ip_len = dns_query(net, NULL, name, namelen, NULL, &ip_addr, NULL, in nfs_dns_resolve_name()
30 if (ip_len > 0) in nfs_dns_resolve_name()
31 ret = rpc_pton(net, ip_addr, ip_len, sa, salen); in nfs_dns_resolve_name()
/linux/drivers/net/ethernet/chelsio/libcxgb/
H A Dlibcxgb_cm.c49 int ip_len = (CHELSIO_CHIP_VERSION(type) <= CHELSIO_T5) ? in cxgb_get_4tuple() local
55 ((u8 *)(req + 1) + eth_len + ip_len); in cxgb_get_4tuple()
/linux/tools/testing/selftests/net/lib/
H A Dcsum.c657 uint16_t ip_len; in recv_verify_packet_ipv4() local
662 ip_len = ntohs(iph->tot_len); in recv_verify_packet_ipv4()
663 if (ip_len > len || ip_len < sizeof(*iph)) in recv_verify_packet_ipv4()
666 len = ip_len; in recv_verify_packet_ipv4()
/linux/net/core/
H A Dnetpoll.c395 int total_len, ip_len, udp_len; in netpoll_send_udp() local
408 ip_len = udp_len + sizeof(*ip6h); in netpoll_send_udp()
410 ip_len = udp_len + sizeof(*iph); in netpoll_send_udp()
412 total_len = ip_len + LL_RESERVED_SPACE(np->dev); in netpoll_send_udp()
473 put_unaligned(htons(ip_len), &(iph->tot_len)); in netpoll_send_udp()
/linux/drivers/net/ethernet/qualcomm/rmnet/
H A Drmnet_map_data.c262 u16 ip_len = ((struct iphdr *)iph)->ihl * 4; in rmnet_map_v5_checksum_uplink_packet() local
265 trans = iph + ip_len; in rmnet_map_v5_checksum_uplink_packet()
268 u16 ip_len = sizeof(struct ipv6hdr); in rmnet_map_v5_checksum_uplink_packet() local
271 trans = iph + ip_len; in rmnet_map_v5_checksum_uplink_packet()
/linux/tools/testing/selftests/bpf/progs/
H A Dxdp_synproxy_kern.c603 __u16 ip_len; in syncookie_handle_syn()
634 ip_len = sizeof(*hdr->ipv4); in syncookie_handle_syn()
647 ip_len = sizeof(*hdr->ipv6); in syncookie_handle_syn()
667 if (data + sizeof(*hdr->eth) + ip_len + TCP_MAXLEN > data_end) in syncookie_handle_syn()
717 new_pkt_size = sizeof(*hdr->eth) + ip_len + hdr->tcp->doff * 4; in syncookie_handle_syn()
604 __u16 ip_len; syncookie_handle_syn() local
/linux/net/openvswitch/
H A Dflow.c197 unsigned int ip_len; in check_iphdr() local
204 ip_len = ip_hdrlen(skb); in check_iphdr()
205 if (unlikely(ip_len < sizeof(struct iphdr) || in check_iphdr()
206 skb->len < nh_ofs + ip_len)) in check_iphdr()
209 skb_set_transport_header(skb, nh_ofs + ip_len); in check_iphdr()
/linux/arch/s390/kernel/
H A Dipl.c741 int i, ip_len; in reipl_generic_vmparm_store() local
744 ip_len = len; in reipl_generic_vmparm_store()
746 ip_len--; in reipl_generic_vmparm_store()
748 if (ip_len > vmparm_max) in reipl_generic_vmparm_store()
752 for (i = 0; i < ip_len; i++) in reipl_generic_vmparm_store()
757 ipb->ccw.vm_parm_len = ip_len; in reipl_generic_vmparm_store()
758 if (ip_len > 0) { in reipl_generic_vmparm_store()
760 memcpy(ipb->ccw.vm_parm, buf, ip_len); in reipl_generic_vmparm_store()
761 ASCEBC(ipb->ccw.vm_parm, ip_len); in reipl_generic_vmparm_store()
/linux/tools/testing/selftests/net/
H A Dip_defrag.c185 iphdr->ip_len = htons(frag_len); in send_fragment()
313 iphdr->ip_len = htons(frag_len); in send_udp_frags()
/linux/drivers/scsi/be2iscsi/
H A Dbe_mgmt.c557 uint32_t ip_len; in beiscsi_if_set_ip() local
574 ip_len = (ip_type < BEISCSI_IP_TYPE_V6) ? IP_V4_LEN : IP_V6_LEN; in beiscsi_if_set_ip()
575 memcpy(req->ip_params.ip_record.ip_addr.addr, ip, ip_len); in beiscsi_if_set_ip()
578 subnet, ip_len); in beiscsi_if_set_ip()
/linux/net/ceph/
H A Dmessenger.c1247 int ip_len, ret; in ceph_dns_resolve_name() local
1270 ip_len = dns_query(current->nsproxy->net_ns, in ceph_dns_resolve_name()
1272 if (ip_len > 0) in ceph_dns_resolve_name()
1273 ret = ceph_pton(ip_addr, ip_len, addr, -1, NULL); in ceph_dns_resolve_name()
/linux/drivers/scsi/qla4xxx/
H A Dql4_os.c6697 size_t ip_len = IP_ADDR_LEN; in qla4xxx_cmp_fw_stentry() local
6701 ip_len = IPv6_ADDR_LEN; in qla4xxx_cmp_fw_stentry()
6703 if (memcmp(fw_ddb_entry->ip_addr, flash_ddb_entry->ip_addr, ip_len)) in qla4xxx_cmp_fw_stentry()