Searched refs:iphlen (Results 1 - 17 of 17) sorted by relevance

/freebsd-12-stable/sys/dev/netmap/
H A Dnetmap_offloadings.c74 gso_fix_segment(uint8_t *pkt, size_t len, u_int ipv4, u_int iphlen, u_int tcp, argument
97 ip6h->payload_len = htobe16(len-iphlen);
101 struct nm_tcphdr *tcph = (struct nm_tcphdr *)(pkt + iphlen);
116 struct nm_udphdr *udph = (struct nm_udphdr *)(pkt + iphlen);
119 udph->len = htobe16(len-iphlen);
128 nm_os_csum_tcpudp_ipv4(iph, check_data, len-iphlen, check);
130 nm_os_csum_tcpudp_ipv6(ip6h, check_data, len-iphlen, check);
255 u_int iphlen = 0; local
305 iphlen = 4 * (iph->version_ihl & 0x0F);
310 iphlen
[all...]
/freebsd-12-stable/sys/netgraph/
H A Dng_tcpmss.c274 int iphlen, tcphlen, pktlen; local
311 iphlen = ip->ip_hl << 2;
312 if (iphlen < sizeof(struct ip) || iphlen > pktlen )
320 M_CHECK(iphlen - sizeof(struct ip) + sizeof(struct tcphdr));
322 tcp = (struct tcphdr *)((caddr_t )ip + iphlen);
326 if (tcphlen < sizeof(struct tcphdr) || tcphlen > pktlen - iphlen)
338 tcp = (struct tcphdr *)((caddr_t )ip + iphlen);
H A Dng_pptpgre.c750 int iphlen, grelen, extralen; local
784 iphlen = ip->ip_hl << 2;
785 if (m->m_len < iphlen + sizeof(*gre)) {
786 if ((m = m_pullup(m, iphlen + sizeof(*gre))) == NULL) {
794 gre = (const struct greheader *)((const u_char *)ip + iphlen);
796 if (m->m_pkthdr.len < iphlen + grelen) {
800 if (m->m_len < iphlen + grelen) {
801 if ((m = m_pullup(m, iphlen + grelen)) == NULL) {
808 gre = (const struct greheader *)((const u_char *)ip + iphlen);
813 - (iphlen
[all...]
/freebsd-12-stable/sys/netinet/
H A Din_rss.c179 int iphlen; local
206 iphlen = ip->ip_hl << 2;
282 if (m->m_len < iphlen + sizeof(struct tcphdr)) {
286 th = (const struct tcphdr *)((c_caddr_t)ip + iphlen);
296 uh = (const struct udphdr *)((c_caddr_t)ip + iphlen);
297 if (m->m_len < iphlen + sizeof(struct udphdr)) {
H A Dsctp_input.c86 sctp_handle_init(struct mbuf *m, int iphlen, int offset, argument
104 sctp_abort_association(inp, stcb, m, iphlen, src, dst, sh, op_err,
116 sctp_abort_association(inp, stcb, m, iphlen, src, dst, sh, op_err,
126 sctp_abort_association(inp, stcb, m, iphlen, src, dst, sh, op_err,
136 sctp_abort_association(inp, stcb, m, iphlen, src, dst, sh, op_err,
146 sctp_abort_association(inp, stcb, m, iphlen, src, dst, sh, op_err,
158 sctp_abort_association(inp, stcb, m, iphlen, src, dst, sh, op_err,
185 sctp_send_abort(m, iphlen, src, dst, sh, 0, op_err,
198 sctp_send_initiate_ack(inp, stcb, net, m, iphlen, offset,
432 sctp_process_init_ack(struct mbuf *m, int iphlen, in argument
1266 sctp_handle_init_ack(struct mbuf *m, int iphlen, int offset, struct sockaddr *src, struct sockaddr *dst, struct sctphdr *sh, struct sctp_init_ack_chunk *cp, struct sctp_tcb *stcb, struct sctp_nets *net, int *abort_no_unlock, uint8_t mflowtype, uint32_t mflowid, uint32_t vrf_id) argument
1424 sctp_process_cookie_existing(struct mbuf *m, int iphlen, int offset, struct sockaddr *src, struct sockaddr *dst, struct sctphdr *sh, struct sctp_state_cookie *cookie, int cookie_len, struct sctp_inpcb *inp, struct sctp_tcb *stcb, struct sctp_nets **netp, struct sockaddr *init_src, int *notification, int auth_skipped, uint32_t auth_offset, uint32_t auth_len, uint8_t mflowtype, uint32_t mflowid, uint32_t vrf_id, uint16_t port) argument
2003 sctp_process_cookie_new(struct mbuf *m, int iphlen, int offset, struct sockaddr *src, struct sockaddr *dst, struct sctphdr *sh, struct sctp_state_cookie *cookie, int cookie_len, struct sctp_inpcb *inp, struct sctp_nets **netp, struct sockaddr *init_src, int *notification, int auth_skipped, uint32_t auth_offset, uint32_t auth_len, uint8_t mflowtype, uint32_t mflowid, uint32_t vrf_id, uint16_t port) argument
2300 sctp_handle_cookie_echo(struct mbuf *m, int iphlen, int offset, struct sockaddr *src, struct sockaddr *dst, struct sctphdr *sh, struct sctp_cookie_echo_chunk *cp, struct sctp_inpcb **inp_p, struct sctp_tcb **stcb, struct sctp_nets **netp, int auth_skipped, uint32_t auth_offset, uint32_t auth_len, struct sctp_tcb **locked_tcb, uint8_t mflowtype, uint32_t mflowid, uint32_t vrf_id, uint16_t port) argument
4373 sctp_process_control(struct mbuf *m, int iphlen, int *offset, int length, struct sockaddr *src, struct sockaddr *dst, struct sctphdr *sh, struct sctp_chunkhdr *ch, struct sctp_inpcb *inp, struct sctp_tcb *stcb, struct sctp_nets **netp, int *fwd_tsn_seen, uint8_t mflowtype, uint32_t mflowid, uint16_t fibnum, uint32_t vrf_id, uint16_t port) argument
5334 sctp_common_input_processing(struct mbuf **mm, int iphlen, int offset, int length, struct sockaddr *src, struct sockaddr *dst, struct sctphdr *sh, struct sctp_chunkhdr *ch, uint8_t compute_crc, uint8_t ecn_bits, uint8_t mflowtype, uint32_t mflowid, uint16_t fibnum, uint32_t vrf_id, uint16_t port) argument
5719 int iphlen; local
[all...]
H A Dudp_usrreq.c403 int cscov_partial, iphlen; local
406 iphlen = *offp;
416 if (iphlen > sizeof (struct ip)) {
418 iphlen = sizeof(struct ip);
424 if (m->m_len < iphlen + sizeof(struct udphdr)) {
425 if ((m = m_pullup(m, iphlen + sizeof(struct udphdr))) == NULL) {
431 uh = (struct udphdr *)((caddr_t)ip + iphlen);
459 ip_len = ntohs(ip->ip_len) - iphlen;
608 if (udp_append(last, ip, n, iphlen,
645 if (udp_append(last, ip, m, iphlen, udp_i
[all...]
H A Dip_mroute.c2559 int iphlen = off; local
2561 int datalen = ntohs(ip->ip_len) - iphlen;
2587 minlen = iphlen + (datalen >= PIM_REG_MINLEN ? PIM_REG_MINLEN : PIM_MINLEN);
2602 m->m_data += iphlen;
2603 m->m_len -= iphlen;
2632 m->m_data -= iphlen;
2633 m->m_len += iphlen;
2707 m->m_data += (iphlen + PIM_MINLEN);
2708 m->m_len -= (iphlen + PIM_MINLEN);
2714 m->m_data -= (iphlen
[all...]
H A Digmp.c1415 int iphlen; local
1433 iphlen = *offp;
1434 igmplen = ntohs(ip->ip_len) - iphlen;
1449 minlen = iphlen;
1464 m->m_data += iphlen;
1465 m->m_len -= iphlen;
1472 m->m_data -= iphlen;
1473 m->m_len += iphlen;
1534 UINT16_MAX - iphlen - IGMP_V3_QUERY_MINLEN) {
1543 igmpv3len = iphlen
[all...]
H A Dsctp_output.c4930 * being equal to the beginning of the params i.e. (iphlen +
5451 int iphlen, int offset,
5506 sctp_send_abort(init_pkt, iphlen, src, dst, sh, 0, op_err,
5522 sctp_send_abort(init_pkt, iphlen, src, dst, sh, 0, op_err,
5543 sctp_send_abort(init_pkt, iphlen, src, dst, sh,
11441 struct mbuf *m, int len, int iphlen, int bad_crc)
11476 len -= iphlen;
11479 offset = iphlen + sizeof(struct sctphdr);
11583 m_copydata(m, iphlen, len, (caddr_t)datap);
12254 sctp_send_abort(struct mbuf *m, int iphlen, struc argument
5449 sctp_send_initiate_ack(struct sctp_inpcb *inp, struct sctp_tcb *stcb, struct sctp_nets *src_net, struct mbuf *init_pkt, int iphlen, int offset, struct sockaddr *src, struct sockaddr *dst, struct sctphdr *sh, struct sctp_init_chunk *init_chk, uint8_t mflowtype, uint32_t mflowid, uint32_t vrf_id, uint16_t port) argument
11440 sctp_send_packet_dropped(struct sctp_tcb *stcb, struct sctp_nets *net, struct mbuf *m, int len, int iphlen, int bad_crc) argument
[all...]
H A Dsctputil.c4364 struct mbuf *m, int iphlen,
4377 sctp_send_abort(m, iphlen, src, dst, sh, vtag, op_err,
4492 sctp_handle_ootb(struct mbuf *m, int iphlen, int offset, argument
4551 sctp_send_abort(m, iphlen, src, dst, sh, 0, cause,
4562 sctp_is_there_an_abort_here(struct mbuf *m, int iphlen, uint32_t *vtagfill) argument
4569 offset = iphlen + sizeof(struct sctphdr);
4363 sctp_abort_association(struct sctp_inpcb *inp, struct sctp_tcb *stcb, struct mbuf *m, int iphlen, struct sockaddr *src, struct sockaddr *dst, struct sctphdr *sh, struct mbuf *op_err, uint8_t mflowtype, uint32_t mflowid, uint32_t vrf_id, uint16_t port) argument
H A Dsctp_indata.c2662 sctp_process_data(struct mbuf **mm, int iphlen, int *offset, int length, argument
2926 sctp_send_packet_dropped(stcb, net, *mm, length, iphlen, 0);
/freebsd-12-stable/sys/kern/
H A Duipc_mbufhash.c110 int iphlen; local
116 iphlen = ip->ip_hl << 2;
117 if (iphlen < sizeof(*ip))
119 off += iphlen;
/freebsd-12-stable/sys/netinet6/
H A Dsctp6_usrreq.c66 int iphlen; local
79 iphlen = *offp;
107 offset = iphlen + sizeof(struct sctphdr) + sizeof(struct sctp_chunkhdr);
116 sh = (struct sctphdr *)(mtod(m, caddr_t) + iphlen);
135 length = ntohs(ip6->ip6_plen) + iphlen;
154 sctp_common_input_processing(&m, iphlen, offset, length,
/freebsd-12-stable/sys/dev/ena/
H A Dena_datapath.c698 int iphlen; local
737 iphlen = ip->ip_hl << 2;
739 mbuf_next = m_getptr(mbuf, iphlen + ehdrlen, &offset);
783 ena_meta->l3_hdr_len = iphlen;
/freebsd-12-stable/sys/dev/hyperv/netvsc/
H A Dif_hn.c781 int iphlen; local
785 iphlen = ip->ip_hl << 2;
786 m_head->m_pkthdr.l3hlen = iphlen;
788 PULLUP_HDR(m_head, ehlen + iphlen + sizeof(*th));
789 th = mtodo(m_head, ehlen + iphlen);
842 int iphlen; local
846 iphlen = ip->ip_hl << 2;
847 m_head->m_pkthdr.l3hlen = iphlen;
860 uint16_t off = ehlen + iphlen;
898 int ehlen, iphlen; local
4838 int len, iphlen, iplen; local
[all...]
/freebsd-12-stable/sys/dev/vnic/
H A Dnicvf_queues.c1756 int ehdrlen, iphlen, poff, proto; local
1808 iphlen = ip->ip_hl << 2;
1809 poff = ehdrlen + iphlen;
/freebsd-12-stable/sys/dev/oce/
H A Doce_if.c1022 int iphlen = ip->ip_hl << 2; local
1023 struct udphdr *uh = (struct udphdr *)((caddr_t)ip + iphlen);

Completed in 299 milliseconds