Searched refs:ip_len (Results 51 - 75 of 140) sorted by relevance

123456

/freebsd-11-stable/sys/netpfil/ipfw/
H A Dip_fw_nat.c403 mcl->m_pkthdr.len = mcl->m_len = ntohs(ip->ip_len);
422 uint16_t ip_len, cksum; local
424 ip_len = ntohs(ip->ip_len);
426 htons(ip->ip_p + ip_len - (ip->ip_hl << 2)));
H A Dip_fw_log.c396 iplen = ntohs(ip->ip_len);
/freebsd-11-stable/contrib/tcpdump/
H A Dprint-ip.c575 ipds->len = EXTRACT_16BITS(&ipds->ip->ip_len);
643 ND_PRINT((ndo, ", length %u", EXTRACT_16BITS(&ipds->ip->ip_len)));
H A Dprint-icmp.c587 ND_TCHECK_16BITS(&ip->ip_len);
588 ip_print(ndo, bp, EXTRACT_16BITS(&ip->ip_len));
/freebsd-11-stable/sys/netinet/
H A Dip_mroute.c1491 int plen = ntohs(ip->ip_len);
2399 if (ntohs(ip->ip_len) <= mtu) {
2422 int len = ntohs(ip->ip_len);
2476 int len = ntohs(ip->ip_len);
2505 ip_outer->ip_len = htons(len + sizeof(pim_encap_iphdr) +
2571 int datalen = ntohs(ip->ip_len) - iphlen;
2687 ntohs(encap_ip->ip_len));
2748 PIMSTAT_ADD(pims_rcv_registers_bytes, ntohs(encap_ip->ip_len));
H A Draw_ip.c470 ip->ip_len = htons(m->m_pkthdr.len);
514 || (ntohs(ip->ip_len) != m->m_pkthdr.len)) {
/freebsd-11-stable/sys/net/
H A Dif_me.c465 ip->ip_len = htons(m->m_pkthdr.len - hlen);
620 ip->ip_len = htons(m->m_pkthdr.len);
H A Dif_spppfr.c323 if (! (ip->ip_off & ~IP_DF) && ip->ip_len > 400 &&
/freebsd-11-stable/sys/netinet/libalias/
H A Dalias_pptp.c447 tlen = ntohs(pip->ip_len);
H A Dalias_skinny.c315 tlen = ntohs(pip->ip_len);
H A Dalias_local.h351 u_short ip_len, u_long th_seq, u_int th_off);
/freebsd-11-stable/tools/bus_space/examples/
H A Dam79c900_diag.py87 ('ip_len', ctypes.c_uint16),
298 pkt.ip_len = ctypes.sizeof(pkt) - 14
/freebsd-11-stable/contrib/netbsd-tests/net/icmp/
H A Dt_ping.c409 ip->ip_len = frag;
/freebsd-11-stable/sys/contrib/ipfilter/netinet/
H A Dip_irc_pxy.c375 ip->ip_len = htons(fin->fin_plen);
H A Dip_nat.c5221 s1 = ip->ip_len;
5222 ip->ip_len = ntohs(ip->ip_len);
5223 ip->ip_len += fin->fin_plen;
5224 ip->ip_len = htons(ip->ip_len);
5225 s2 += ntohs(ip->ip_len);
5668 sum1 = ntohs(ip->ip_len);
5669 ip->ip_len = ntohs(ip->ip_len);
[all...]
/freebsd-11-stable/sys/netipsec/
H A Dipsec_output.c228 ip->ip_len = htons(m->m_pkthdr.len);
699 mtod(m, struct ip *)->ip_len = htons(m->m_pkthdr.len);
915 ip->ip_len = htons((*mp)->m_pkthdr.len);
H A Dxform_ah.c1020 offsetof(struct ip, ip_len),
1023 m_copyback(m, offsetof(struct ip, ip_len),
/freebsd-11-stable/sys/dev/nxge/
H A Dif_nxge.c2493 header_ip->ip_len = htons(lro_session->len - ETHER_HDR_LEN);
2531 int hlen, ip_len, tcp_hdr_len, tcp_data_len, tot_len, tcp_options; local
2578 ip_len = ntohs(header_ip->ip_len);
2581 tcp_data_len = ip_len - (header_tcp->th_off << 2) - sizeof(*header_ip);
2585 trim = tot_len - (ip_len + ETHER_HDR_LEN);
2601 hlen = ip_len + ETHER_HDR_LEN - tcp_data_len;
/freebsd-11-stable/usr.sbin/trpt/
H A Dtrpt.c372 ip4->ip_len;
/freebsd-11-stable/sys/ofed/drivers/infiniband/core/
H A Dib_ud_header.c296 iph.ip_len = header->ip4.tot_len;
/freebsd-11-stable/sys/dev/mlx5/mlx5_en/
H A Dmlx5_en_rx.c199 ip4->ip_len = cpu_to_be16(tot_len);
/freebsd-11-stable/sys/dev/xen/netback/
H A Dnetback.c2170 size_t tcplen = ntohs(iph->ip_len) - sizeof(struct ip);
2175 sizeof(struct ether_header) + ntohs(iph->ip_len),
2181 size_t udplen = ntohs(iph->ip_len) - sizeof(struct ip);
2186 sizeof(struct ether_header) + ntohs(iph->ip_len),
/freebsd-11-stable/sys/netpfil/ipfw/nat64/
H A Dnat64_translate.c487 ip->ip_len = htons(sizeof(*ip) + plen);
791 oip->ip_len = htons(n->m_pkthdr.len);
1057 eip6->ip6_plen = htons(ntohs(ip.ip_len) - (ip.ip_hl << 2));
1195 plen = ntohs(ip->ip_len) - hlen;
/freebsd-11-stable/contrib/openbsm/test/bsm/
H A Dgenerate.c677 ip_token_ip.ip_len = htons(sizeof(ip_token_ip));
700 ip_token_ip.ip_len = htons(sizeof(ip_token_ip));
/freebsd-11-stable/usr.sbin/ppp/
H A Dip.c275 datalen = ntohs(pip->ip_len) - (pip->ip_hl << 2);
603 datalen = ntohs(pip->ip_len) - (pip->ip_hl << 2);

Completed in 318 milliseconds

123456