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

/freebsd-9.3-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-9.3-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-9.3-release/sys/netinet/
H A Dudp_usrreq.c336 int iphlen = off; local
354 if (iphlen > sizeof (struct ip)) {
356 iphlen = sizeof(struct ip);
363 if (m->m_len < iphlen + sizeof(struct udphdr)) {
364 if ((m = m_pullup(m, iphlen + sizeof(struct udphdr))) == 0) {
370 uh = (struct udphdr *)((caddr_t)ip + iphlen);
509 udp_append(last, ip, n, iphlen, &udp_in);
538 udp_append(last, ip, m, iphlen, &udp_in);
602 ip->ip_len += iphlen;
616 udp_append(inp, ip, m, iphlen,
1277 size_t minlen, payload, skip, iphlen; local
[all...]
H A Dsctp_input.c83 sctp_handle_init(struct mbuf *m, int iphlen, int offset, argument
101 sctp_abort_association(inp, stcb, m, iphlen, src, dst, sh, op_err,
113 sctp_abort_association(inp, stcb, m, iphlen, src, dst, sh, op_err,
123 sctp_abort_association(inp, stcb, m, iphlen, src, dst, sh, op_err,
133 sctp_abort_association(inp, stcb, m, iphlen, src, dst, sh, op_err,
143 sctp_abort_association(inp, stcb, m, iphlen, src, dst, sh, op_err,
155 sctp_abort_association(inp, stcb, m, iphlen, src, dst, sh, op_err,
186 sctp_send_abort(m, iphlen, src, dst, sh, 0, op_err,
199 sctp_send_initiate_ack(inp, stcb, m, iphlen, offset, src, dst,
431 sctp_process_init_ack(struct mbuf *m, int iphlen, in argument
1292 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
1450 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
2004 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
2377 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
4389 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
5594 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
6002 int iphlen; local
[all...]
H A Dip_mroute.c2568 int iphlen = off; local
2593 minlen = iphlen + (datalen >= PIM_REG_MINLEN ? PIM_REG_MINLEN : PIM_MINLEN);
2609 m->m_data += iphlen;
2610 m->m_len -= iphlen;
2639 m->m_data -= iphlen;
2640 m->m_len += iphlen;
2713 m->m_data += (iphlen + PIM_MINLEN);
2714 m->m_len -= (iphlen + PIM_MINLEN);
2720 m->m_data -= (iphlen + PIM_MINLEN);
2721 m->m_len += (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.c2294 sctp_process_data(struct mbuf **mm, int iphlen, int *offset, int length, argument
2391 sctp_abort_association(inp, stcb, m, iphlen,
2406 sctp_abort_association(inp, stcb, m, iphlen,
2474 m, iphlen,
2543 sctp_send_packet_dropped(stcb, net, *mm, length, iphlen, 0);
H A Dsctp_output.c4988 * being equal to the beginning of the params i.e. (iphlen +
5487 struct mbuf *init_pkt, int iphlen, int offset,
5543 sctp_send_abort(init_pkt, iphlen, src, dst, sh, 0, op_err,
5561 sctp_send_abort(init_pkt, iphlen, src, dst, sh,
11400 struct mbuf *m, int len, int iphlen, int bad_crc)
11432 len -= iphlen;
11435 offset = iphlen + sizeof(struct sctphdr);
11541 m_copydata(m, iphlen, len, (caddr_t)datap);
12018 sctp_send_abort(struct mbuf *m, int iphlen, struct sockaddr *src, struct sockaddr *dst, argument
12024 if (sctp_is_there_an_abort_here(m, iphlen,
5486 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
11399 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.c3843 struct mbuf *m, int iphlen,
3865 sctp_send_abort(m, iphlen, src, dst, sh, vtag, op_err,
4016 sctp_handle_ootb(struct mbuf *m, int iphlen, int offset, argument
4075 sctp_send_abort(m, iphlen, src, dst, sh, 0, cause,
4086 sctp_is_there_an_abort_here(struct mbuf *m, int iphlen, uint32_t * vtagfill) argument
4093 offset = iphlen + sizeof(struct sctphdr);
3842 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-9.3-release/sys/netipsec/
H A Dxform_ipip.c102 static void _ipip_input(struct mbuf *m, int iphlen, struct ifnet *gifp);
153 _ipip_input(struct mbuf *m, int iphlen, struct ifnet *gifp) argument
213 m_adj(m, iphlen);
303 IPIPSTAT_ADD(ipips_ibytes, m->m_pkthdr.len - iphlen);
/freebsd-9.3-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-9.3-release/sys/net/
H A Dflowtable.c503 int iphlen; local
525 iphlen = ip->ip_hl << 2; /* XXX options? */
529 th = (struct tcphdr *)((caddr_t)ip + iphlen);
537 uh = (struct udphdr *)((caddr_t)ip + iphlen);
542 sh = (struct sctphdr *)((caddr_t)ip + iphlen);
H A Dif_lagg.c1502 int iphlen; local
1562 iphlen = ip->ip_hl << 2;
1563 if (iphlen < sizeof(*ip))
1565 off += iphlen;
/freebsd-9.3-release/sys/dev/vxge/
H A Dvxge.c2489 int ehdrlen, iphlen = 0; local
2509 iphlen = ip->ip_hl << 2;
2511 th = (struct tcphdr *) ((caddr_t)ip + iphlen);
2512 uh = (struct udphdr *) ((caddr_t)ip + iphlen);
2517 iphlen = sizeof(struct ip6_hdr);
2520 ulp = mtod(mhead, char *) + iphlen;

Completed in 237 milliseconds