| /f-stack/freebsd/netgraph/ |
| H A D | ng_tcpmss.c | 273 int iphlen, tcphlen, pktlen; in ng_tcpmss_rcvdata() local 310 iphlen = ip->ip_hl << 2; in ng_tcpmss_rcvdata() 311 if (iphlen < sizeof(struct ip) || iphlen > pktlen ) in ng_tcpmss_rcvdata() 319 M_CHECK(iphlen - sizeof(struct ip) + sizeof(struct tcphdr)); in ng_tcpmss_rcvdata() 321 tcp = (struct tcphdr *)((caddr_t )ip + iphlen); in ng_tcpmss_rcvdata() 325 if (tcphlen < sizeof(struct tcphdr) || tcphlen > pktlen - iphlen) in ng_tcpmss_rcvdata() 337 tcp = (struct tcphdr *)((caddr_t )ip + iphlen); in ng_tcpmss_rcvdata()
|
| H A D | ng_pptpgre.c | 750 int iphlen, grelen, extralen; in ng_pptpgre_rcvdata_lower() local 784 iphlen = ip->ip_hl << 2; in ng_pptpgre_rcvdata_lower() 785 if (m->m_len < iphlen + sizeof(*gre)) { in ng_pptpgre_rcvdata_lower() 786 if ((m = m_pullup(m, iphlen + sizeof(*gre))) == NULL) { in ng_pptpgre_rcvdata_lower() 794 gre = (const struct greheader *)((const u_char *)ip + iphlen); in ng_pptpgre_rcvdata_lower() 796 if (m->m_pkthdr.len < iphlen + grelen) { in ng_pptpgre_rcvdata_lower() 800 if (m->m_len < iphlen + grelen) { in ng_pptpgre_rcvdata_lower() 801 if ((m = m_pullup(m, iphlen + grelen)) == NULL) { in ng_pptpgre_rcvdata_lower() 808 gre = (const struct greheader *)((const u_char *)ip + iphlen); in ng_pptpgre_rcvdata_lower() 813 - (iphlen + grelen + gre->hasSeq * be16dec(&gre->length)); in ng_pptpgre_rcvdata_lower() [all …]
|
| /f-stack/freebsd/netinet/ |
| H A D | in_rss.c | 221 int iphlen; in rss_mbuf_software_hash_v4() local 248 iphlen = ip->ip_hl << 2; in rss_mbuf_software_hash_v4() 324 if (m->m_len < iphlen + sizeof(struct tcphdr)) { in rss_mbuf_software_hash_v4() 328 th = (const struct tcphdr *)((c_caddr_t)ip + iphlen); in rss_mbuf_software_hash_v4() 338 uh = (const struct udphdr *)((c_caddr_t)ip + iphlen); in rss_mbuf_software_hash_v4() 339 if (m->m_len < iphlen + sizeof(struct udphdr)) { in rss_mbuf_software_hash_v4()
|
| H A D | sctp_input.c | 86 sctp_handle_init(struct mbuf *m, int iphlen, int offset, in sctp_handle_init() argument 185 sctp_send_abort(m, iphlen, src, dst, sh, 0, op_err, in sctp_handle_init() 4387 iphlen, *offset, length, (void *)stcb); in sctp_process_control() 4664 sctp_abort_association(inp, stcb, m, iphlen, in sctp_process_control() 4953 sctp_abort_association(inp, stcb, m, iphlen, in sctp_process_control() 4985 sctp_handle_cookie_echo(m, iphlen, in sctp_process_control() 5345 calc_check = sctp_calculate_cksum(m, iphlen); in sctp_common_input_processing() 5434 sctp_send_abort(m, iphlen, src, dst, in sctp_common_input_processing() 5702 int iphlen; in sctp_input_with_port() local 5715 iphlen = off; in sctp_input_with_port() [all …]
|
| H A D | udp_usrreq.c | 405 int cscov_partial, iphlen; in udp_input() local 408 iphlen = *offp; in udp_input() 418 if (iphlen > sizeof (struct ip)) { in udp_input() 420 iphlen = sizeof(struct ip); in udp_input() 426 if (m->m_len < iphlen + sizeof(struct udphdr)) { in udp_input() 427 if ((m = m_pullup(m, iphlen + sizeof(struct udphdr))) == NULL) { in udp_input() 433 uh = (struct udphdr *)((caddr_t)ip + iphlen); in udp_input() 461 ip_len = ntohs(ip->ip_len) - iphlen; in udp_input() 611 if (udp_append(last, ip, n, iphlen, in udp_input() 647 if (udp_append(last, ip, m, iphlen, udp_in) == 0) in udp_input() [all …]
|
| H A D | ip_mroute.c | 2560 int iphlen = off; in pim_input() local 2562 int datalen = ntohs(ip->ip_len) - iphlen; in pim_input() 2603 m->m_data += iphlen; in pim_input() 2604 m->m_len -= iphlen; in pim_input() 2633 m->m_data -= iphlen; in pim_input() 2634 m->m_len += iphlen; in pim_input() 2708 m->m_data += (iphlen + PIM_MINLEN); in pim_input() 2709 m->m_len -= (iphlen + PIM_MINLEN); in pim_input() 2715 m->m_data -= (iphlen + PIM_MINLEN); in pim_input() 2716 m->m_len += (iphlen + PIM_MINLEN); in pim_input() [all …]
|
| H A D | igmp.c | 1471 int iphlen; in igmp_input() local 1489 iphlen = *offp; in igmp_input() 1490 igmplen = ntohs(ip->ip_len) - iphlen; in igmp_input() 1505 minlen = iphlen; in igmp_input() 1520 m->m_data += iphlen; in igmp_input() 1521 m->m_len -= iphlen; in igmp_input() 1528 m->m_data -= iphlen; in igmp_input() 1529 m->m_len += iphlen; in igmp_input() 1590 UINT16_MAX - iphlen - IGMP_V3_QUERY_MINLEN) { in igmp_input() 1599 igmpv3len = iphlen + IGMP_V3_QUERY_MINLEN + in igmp_input() [all …]
|
| H A D | sctp_output.c | 5461 int iphlen, int offset, in sctp_send_initiate_ack() argument 5510 sctp_send_abort(init_pkt, iphlen, src, dst, sh, 0, op_err, in sctp_send_initiate_ack() 5526 sctp_send_abort(init_pkt, iphlen, src, dst, sh, 0, op_err, in sctp_send_initiate_ack() 5547 sctp_send_abort(init_pkt, iphlen, src, dst, sh, in sctp_send_initiate_ack() 11430 struct mbuf *m, int len, int iphlen, int bad_crc) in sctp_send_packet_dropped() argument 11465 len -= iphlen; in sctp_send_packet_dropped() 11468 offset = iphlen + sizeof(struct sctphdr); in sctp_send_packet_dropped() 11572 m_copydata(m, iphlen, len, (caddr_t)datap); in sctp_send_packet_dropped() 12251 sctp_send_abort(struct mbuf *m, int iphlen, struct sockaddr *src, struct sockaddr *dst, in sctp_send_abort() argument 12257 if (sctp_is_there_an_abort_here(m, iphlen, &vtag)) { in sctp_send_abort()
|
| H A D | sctputil.c | 4356 struct mbuf *m, int iphlen, in sctp_abort_association() argument 4369 sctp_send_abort(m, iphlen, src, dst, sh, vtag, op_err, in sctp_abort_association() 4484 sctp_handle_ootb(struct mbuf *m, int iphlen, int offset, in sctp_handle_ootb() argument 4543 sctp_send_abort(m, iphlen, src, dst, sh, 0, cause, in sctp_handle_ootb() 4554 sctp_is_there_an_abort_here(struct mbuf *m, int iphlen, uint32_t *vtagfill) in sctp_is_there_an_abort_here() argument 4561 offset = iphlen + sizeof(struct sctphdr); in sctp_is_there_an_abort_here()
|
| H A D | sctp_indata.c | 2649 sctp_process_data(struct mbuf **mm, int iphlen, int *offset, int length, in sctp_process_data() argument 2913 sctp_send_packet_dropped(stcb, net, *mm, length, iphlen, 0); in sctp_process_data()
|
| /f-stack/freebsd/kern/ |
| H A D | uipc_mbufhash.c | 110 int iphlen; in m_tcpip_hash() local 116 iphlen = ip->ip_hl << 2; in m_tcpip_hash() 117 if (iphlen < sizeof(*ip)) in m_tcpip_hash() 119 off += iphlen; in m_tcpip_hash()
|
| /f-stack/freebsd/netinet6/ |
| H A D | sctp6_usrreq.c | 64 int iphlen; in sctp6_input_with_port() local 77 iphlen = *offp; in sctp6_input_with_port() 105 offset = iphlen + sizeof(struct sctphdr) + sizeof(struct sctp_chunkhdr); in sctp6_input_with_port() 114 sh = (struct sctphdr *)(mtod(m, caddr_t)+iphlen); in sctp6_input_with_port() 133 length = ntohs(ip6->ip6_plen) + iphlen; in sctp6_input_with_port() 152 sctp_common_input_processing(&m, iphlen, offset, length, in sctp6_input_with_port()
|