Home
last modified time | relevance | path

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

12

/openbmc/qemu/net/
H A Dchecksum.c62 int mac_hdr_len, ip_len; in net_checksum_calculate() local
121 ip_len = lduw_be_p(&ip->ip_len); in net_checksum_calculate()
124 if (length < ip_len) { in net_checksum_calculate()
128 ip_len -= IP_HDR_GET_LEN(ip); in net_checksum_calculate()
139 if (ip_len < sizeof(tcp_header)) { in net_checksum_calculate()
146 csum = net_checksum_tcpudp(ip_len, ip->ip_p, in net_checksum_calculate()
163 if (ip_len < sizeof(udp_header)) { in net_checksum_calculate()
170 csum = net_checksum_tcpudp(ip_len, ip->ip_p, in net_checksum_calculate()
H A Dutil.h41 uint16_t ip_len; /* total length */ member
/openbmc/openbmc/meta-google/recipes-google/networking/gbmc-bridge/
H A Dgbmc-br-gw-src.sh73 local ip_len="${gbmc_br_gw_src_ips["$ip"]}"
74 if (( ip_len < new_len )); then
76 new_len="$ip_len"
/openbmc/linux/tools/testing/selftests/net/
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()
678 uint16_t ip_len; in recv_verify_packet_ipv6() local
683 ip_len = ntohs(ip6h->payload_len); in recv_verify_packet_ipv6()
684 if (ip_len > len - sizeof(*ip6h)) in recv_verify_packet_ipv6()
687 len = ip_len; in recv_verify_packet_ipv6()
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()
/openbmc/linux/tools/perf/util/intel-pt-decoder/
H A Dintel-pt-pkt-decoder.c456 int ip_len; in intel_pt_get_ip() local
462 ip_len = 0; in intel_pt_get_ip()
467 ip_len = 2; in intel_pt_get_ip()
473 ip_len = 4; in intel_pt_get_ip()
480 ip_len = 6; in intel_pt_get_ip()
486 ip_len = 8; in intel_pt_get_ip()
495 return ip_len + 1; in intel_pt_get_ip()
/openbmc/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()
/openbmc/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()
/openbmc/u-boot/net/
H A Dnet.c930 len = ntohs(ip->ip_len) - IP_HDR_SIZE; in __net_defragment()
1030 localip->ip_len = htons(total_len); in __net_defragment()
1209 if (len < ntohs(ip->ip_len)) { in net_process_received_packet()
1210 debug("len bad %d < %d\n", len, ntohs(ip->ip_len)); in net_process_received_packet()
1213 len = ntohs(ip->ip_len); in net_process_received_packet()
1272 if (ntohs(ip->udp_len) < UDP_HDR_SIZE || ntohs(ip->udp_len) > ntohs(ip->ip_len)) in net_process_received_packet()
1514 ip->ip_len = htons(pkt_len); in net_set_ip_header()
/openbmc/linux/net/core/
H A Dnetpoll.c402 int total_len, ip_len, udp_len; in netpoll_send_udp() local
415 ip_len = udp_len + sizeof(*ip6h); in netpoll_send_udp()
417 ip_len = udp_len + sizeof(*iph); in netpoll_send_udp()
419 total_len = ip_len + LL_RESERVED_SPACE(np->dev); in netpoll_send_udp()
480 put_unaligned(htons(ip_len), &(iph->tot_len)); in netpoll_send_udp()
/openbmc/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()
/openbmc/linux/tools/testing/selftests/bpf/progs/
H A Dxdp_synproxy_kern.c601 __u16 ip_len; in syncookie_handle_syn() local
632 ip_len = sizeof(*hdr->ipv4); in syncookie_handle_syn()
645 ip_len = sizeof(*hdr->ipv6); in syncookie_handle_syn()
665 if (data + sizeof(*hdr->eth) + ip_len + TCP_MAXLEN > data_end) in syncookie_handle_syn()
715 new_pkt_size = sizeof(*hdr->eth) + ip_len + hdr->tcp->doff * 4; in syncookie_handle_syn()
/openbmc/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()
/openbmc/linux/arch/s390/kernel/
H A Dipl.c714 int i, ip_len; in reipl_generic_vmparm_store() local
717 ip_len = len; in reipl_generic_vmparm_store()
719 ip_len--; in reipl_generic_vmparm_store()
721 if (ip_len > vmparm_max) in reipl_generic_vmparm_store()
725 for (i = 0; i < ip_len; i++) in reipl_generic_vmparm_store()
730 ipb->ccw.vm_parm_len = ip_len; in reipl_generic_vmparm_store()
731 if (ip_len > 0) { in reipl_generic_vmparm_store()
733 memcpy(ipb->ccw.vm_parm, buf, ip_len); in reipl_generic_vmparm_store()
734 ASCEBC(ipb->ccw.vm_parm, ip_len); in reipl_generic_vmparm_store()
/openbmc/u-boot/include/
H A Dnet.h355 u16 ip_len; /* total length */ member
379 u16 ip_len; /* total length */ member
/openbmc/linux/drivers/scsi/qedi/
H A Dqedi_main.c2050 u32 ipv6_en, dhcp_en, ip_len; in qedi_show_boot_eth_info() local
2066 ip_len = ipv6_en ? IPV6_LEN : IPV4_LEN; in qedi_show_boot_eth_info()
2077 ip_len = ipv6_en ? 5 : 8; in qedi_show_boot_eth_info()
2082 rc = snprintf(buf, ip_len, fmt, ip); in qedi_show_boot_eth_info()
2085 rc = snprintf(buf, ip_len, fmt, sub); in qedi_show_boot_eth_info()
2088 rc = snprintf(buf, ip_len, fmt, gw); in qedi_show_boot_eth_info()
2183 u32 ctrl_flags, ipv6_en, chap_en, mchap_en, ip_len; in qedi_show_boot_tgt_info() local
2207 ip_len = ipv6_en ? IPV6_LEN : IPV4_LEN; in qedi_show_boot_tgt_info()
2225 rc = snprintf(buf, ip_len, "%pI6\n", in qedi_show_boot_tgt_info()
2228 rc = snprintf(buf, ip_len, "%pI4\n", in qedi_show_boot_tgt_info()
/openbmc/qemu/hw/net/
H A Dnet_tx_pkt.c96 pkt->l3_hdr.ip.ip_len = cpu_to_be16(pkt->payload_len + in net_tx_pkt_update_ip_hdr_checksum()
657 ip->ip_len = cpu_to_be16(len); in net_tx_pkt_tcp_fragment_fix()
717 ip->ip_len = cpu_to_be16(l3hdr->iov_len + fragment_len); in net_tx_pkt_udp_fragment_fix()
H A Dvirtio-net.c2058 unit->ip_plen = &ip->ip_len; in virtio_net_rsc_extract_unit4()
2428 uint16_t ip_len; in virtio_net_rsc_sanity_check4() local
2459 ip_len = htons(ip->ip_len); in virtio_net_rsc_sanity_check4()
2460 if (ip_len < (sizeof(struct ip_header) + sizeof(struct tcp_header)) in virtio_net_rsc_sanity_check4()
2461 || ip_len > (size - chain->n->guest_hdr_len - in virtio_net_rsc_sanity_check4()
2509 uint16_t ip_len; in virtio_net_rsc_sanity_check6() local
2522 ip_len = htons(ip6->ip6_ctlun.ip6_un1.ip6_un1_plen); in virtio_net_rsc_sanity_check6()
2523 if (ip_len < sizeof(struct tcp_header) || in virtio_net_rsc_sanity_check6()
2524 ip_len > (size - chain->n->guest_hdr_len - sizeof(struct eth_header) in virtio_net_rsc_sanity_check6()
/openbmc/u-boot/lib/efi_selftest/
H A Defi_selftest_snp.c116 p.ip_udp.ip_len = htons(sizeof(struct dhcp) - in send_dhcp_discover()
/openbmc/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()
/openbmc/qemu/include/net/
H A Deth.h52 uint16_t ip_len; /* total length */ member
/openbmc/u-boot/drivers/net/
H A Dsandbox.c231 ipr->ip_len = htons(IP_ICMP_HDR_SIZE); in sandbox_eth_recv_ping_req()
H A Dxilinx_emaclite.c515 length = ntohs(ip->ip_len); in emaclite_recv()
/openbmc/qemu/hw/hyperv/
H A Dsyndbg.c170 PKT_GET_IP_HDR(pkt)->ip_len = in create_udp_pkt()
/openbmc/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()

12