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

/freebsd-10.1-release/sys/dev/netmap/
H A Dnetmap_offloadings.c71 u_int tcp, u_int iphlen)
78 if (iphlen == 20) {
91 } else {/* if (iphlen == 40) */
93 ip6h->payload_len = htobe16(len-14-iphlen);
97 struct nm_tcphdr *tcph = (struct nm_tcphdr *)(buf + 14 + iphlen);
112 struct nm_udphdr *udph = (struct nm_udphdr *)(buf + 14 + iphlen);
115 udph->len = htobe16(len-14-iphlen);
123 if (iphlen == 20)
124 nm_csum_tcpudp_ipv4(iph, check_data, len-14-iphlen, check);
126 nm_csum_tcpudp_ipv6(ip6h, check_data, len-14-iphlen, chec
69 gso_fix_segment(uint8_t *buf, size_t len, u_int idx, u_int segmented_bytes, u_int last_segment, u_int tcp, u_int iphlen) argument
217 u_int iphlen = 0; local
[all...]
/freebsd-10.1-release/sys/netgraph/
H A Dng_tcpmss.c272 int iphlen, tcphlen, pktlen; local
309 iphlen = ip->ip_hl << 2;
310 if (iphlen < sizeof(struct ip) || iphlen > pktlen )
318 M_CHECK(iphlen - sizeof(struct ip) + sizeof(struct tcphdr));
320 tcp = (struct tcphdr *)((caddr_t )ip + iphlen);
324 if (tcphlen < sizeof(struct tcphdr) || tcphlen > pktlen - iphlen)
336 tcp = (struct tcphdr *)((caddr_t )ip + iphlen);
H A Dng_pptpgre.c658 int iphlen, grelen, extralen; local
682 iphlen = ip->ip_hl << 2;
683 if (m->m_len < iphlen + sizeof(*gre)) {
684 if ((m = m_pullup(m, iphlen + sizeof(*gre))) == NULL) {
690 gre = (const struct greheader *)((const u_char *)ip + iphlen);
692 if (m->m_pkthdr.len < iphlen + grelen) {
696 if (m->m_len < iphlen + grelen) {
697 if ((m = m_pullup(m, iphlen + grelen)) == NULL) {
702 gre = (const struct greheader *)((const u_char *)ip + iphlen);
707 - (iphlen
[all...]
/freebsd-10.1-release/sys/ofed/drivers/net/mlx4/
H A Dutils.c100 int iphlen; local
160 iphlen = ip->ip_hl << 2;
161 if (iphlen < sizeof(*ip))
163 off += iphlen;
/freebsd-10.1-release/sys/netinet/
H A Dsctp_input.c85 sctp_handle_init(struct mbuf *m, int iphlen, int offset, argument
103 sctp_abort_association(inp, stcb, m, iphlen, src, dst, sh, op_err,
115 sctp_abort_association(inp, stcb, m, iphlen, src, dst, sh, op_err,
125 sctp_abort_association(inp, stcb, m, iphlen, src, dst, sh, op_err,
135 sctp_abort_association(inp, stcb, m, iphlen, src, dst, sh, op_err,
145 sctp_abort_association(inp, stcb, m, iphlen, src, dst, sh, op_err,
157 sctp_abort_association(inp, stcb, m, iphlen, src, dst, sh, op_err,
188 sctp_send_abort(m, iphlen, src, dst, sh, 0, op_err,
201 sctp_send_initiate_ack(inp, stcb, m, iphlen, offset, src, dst,
433 sctp_process_init_ack(struct mbuf *m, int iphlen, in argument
1283 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 use_mflowid, uint32_t mflowid, uint32_t vrf_id) argument
1441 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 use_mflowid, uint32_t mflowid, uint32_t vrf_id, uint16_t port) argument
2009 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 use_mflowid, uint32_t mflowid, uint32_t vrf_id, uint16_t port) argument
2370 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 use_mflowid, uint32_t mflowid, uint32_t vrf_id, uint16_t port) argument
4393 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 use_mflowid, uint32_t mflowid, uint32_t vrf_id, uint16_t port) argument
5609 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 use_mflowid, uint32_t mflowid, uint32_t vrf_id, uint16_t port) argument
6023 int iphlen; local
[all...]
H A Dudp_usrreq.c374 int iphlen = off; local
395 if (iphlen > sizeof (struct ip)) {
397 iphlen = sizeof(struct ip);
404 if (m->m_len < iphlen + sizeof(struct udphdr)) {
405 if ((m = m_pullup(m, iphlen + sizeof(struct udphdr))) == NULL) {
411 uh = (struct udphdr *)((caddr_t)ip + iphlen);
436 ip_len = ntohs(ip->ip_len) - iphlen;
572 udp_append(last, ip, n, iphlen, &udp_in);
601 udp_append(last, ip, m, iphlen, &udp_in);
690 udp_append(inp, ip, m, iphlen,
1444 size_t minlen, payload, skip, iphlen; local
[all...]
H A Dip_mroute.c2559 pim_input(struct mbuf *m, int iphlen) argument
2564 int datalen = ntohs(ip->ip_len) - iphlen;
2590 minlen = iphlen + (datalen >= PIM_REG_MINLEN ? PIM_REG_MINLEN : PIM_MINLEN);
2605 m->m_data += iphlen;
2606 m->m_len -= iphlen;
2635 m->m_data -= iphlen;
2636 m->m_len += iphlen;
2709 m->m_data += (iphlen + PIM_MINLEN);
2710 m->m_len -= (iphlen + PIM_MINLEN);
2716 m->m_data -= (iphlen
[all...]
H A Digmp.c1429 int iphlen; local
1444 iphlen = off;
1460 minlen = iphlen;
1475 m->m_data += iphlen;
1476 m->m_len -= iphlen;
1483 m->m_data -= iphlen;
1484 m->m_len += iphlen;
1545 UINT16_MAX - iphlen - IGMP_V3_QUERY_MINLEN) {
1553 igmpv3len = iphlen + IGMP_V3_QUERY_MINLEN +
1562 + iphlen);
[all...]
H A Dsctp_indata.c2295 sctp_process_data(struct mbuf **mm, int iphlen, int *offset, int length, argument
2392 sctp_abort_association(inp, stcb, m, iphlen,
2407 sctp_abort_association(inp, stcb, m, iphlen,
2475 m, iphlen,
2544 sctp_send_packet_dropped(stcb, net, *mm, length, iphlen, 0);
H A Dsctp_output.c4986 * being equal to the beginning of the params i.e. (iphlen +
5484 struct mbuf *init_pkt, int iphlen, int offset,
5538 sctp_send_abort(init_pkt, iphlen, src, dst, sh, 0, op_err,
5556 sctp_send_abort(init_pkt, iphlen, src, dst, sh,
11409 struct mbuf *m, int len, int iphlen, int bad_crc)
11444 len -= iphlen;
11447 offset = iphlen + sizeof(struct sctphdr);
11551 m_copydata(m, iphlen, len, (caddr_t)datap);
12052 sctp_send_abort(struct mbuf *m, int iphlen, struct sockaddr *src, struct sockaddr *dst, argument
12058 if (sctp_is_there_an_abort_here(m, iphlen,
5483 sctp_send_initiate_ack(struct sctp_inpcb *inp, struct sctp_tcb *stcb, 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 use_mflowid, uint32_t mflowid, uint32_t vrf_id, uint16_t port, int hold_inp_lock) argument
11408 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.c3852 struct mbuf *m, int iphlen,
3874 sctp_send_abort(m, iphlen, src, dst, sh, vtag, op_err,
4025 sctp_handle_ootb(struct mbuf *m, int iphlen, int offset, argument
4084 sctp_send_abort(m, iphlen, src, dst, sh, 0, cause,
4095 sctp_is_there_an_abort_here(struct mbuf *m, int iphlen, uint32_t * vtagfill) argument
4102 offset = iphlen + sizeof(struct sctphdr);
3851 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 use_mflowid, uint32_t mflowid, uint32_t vrf_id, uint16_t port) argument
/freebsd-10.1-release/sys/netipsec/
H A Dxform_ipip.c108 static void _ipip_input(struct mbuf *m, int iphlen, struct ifnet *gifp);
159 _ipip_input(struct mbuf *m, int iphlen, struct ifnet *gifp) argument
219 m_adj(m, iphlen);
309 IPIPSTAT_ADD(ipips_ibytes, m->m_pkthdr.len - iphlen);
/freebsd-10.1-release/sys/netinet6/
H A Dsctp6_usrreq.c72 int iphlen; local
88 iphlen = *offp;
126 offset = iphlen + sizeof(struct sctphdr) + sizeof(struct sctp_chunkhdr);
128 IP6_EXTHDR_GET(sh, struct sctphdr *, m, iphlen,
156 length = ntohs(ip6->ip6_plen) + iphlen;
179 sctp_common_input_processing(&m, iphlen, offset, length,
/freebsd-10.1-release/sys/net/
H A Dflowtable.c194 int iphlen; local
209 iphlen = ip->ip_hl << 2;
216 th = (struct tcphdr *)((char *)ip + iphlen);
226 uh = (struct udphdr *)((char *)ip + iphlen);
234 sh = (struct sctphdr *)((char *)ip + iphlen);
H A Dif_lagg.c1570 int iphlen; local
1630 iphlen = ip->ip_hl << 2;
1631 if (iphlen < sizeof(*ip))
1633 off += iphlen;
/freebsd-10.1-release/sys/dev/vxge/
H A Dvxge.c2488 int ehdrlen, iphlen = 0; local
2508 iphlen = ip->ip_hl << 2;
2510 th = (struct tcphdr *) ((caddr_t)ip + iphlen);
2511 uh = (struct udphdr *) ((caddr_t)ip + iphlen);
2516 iphlen = sizeof(struct ip6_hdr);
2519 ulp = mtod(mhead, char *) + iphlen;

Completed in 374 milliseconds