/freebsd-10.0-release/sys/netgraph/ |
H A D | ng_tcpmss.c | 272 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 D | ng_pptpgre.c | 658 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.0-release/sys/netinet/ |
H A D | udp_usrreq.c | 343 int iphlen = off; local 361 if (iphlen > sizeof (struct ip)) { 363 iphlen = sizeof(struct ip); 370 if (m->m_len < iphlen + sizeof(struct udphdr)) { 371 if ((m = m_pullup(m, iphlen + sizeof(struct udphdr))) == 0) { 377 uh = (struct udphdr *)((caddr_t)ip + iphlen); 400 ip_len = ntohs(ip->ip_len) - iphlen; 516 udp_append(last, ip, n, iphlen, &udp_in); 545 udp_append(last, ip, m, iphlen, &udp_in); 624 udp_append(inp, ip, m, iphlen, 1287 size_t minlen, payload, skip, iphlen; local [all...] |
H A D | sctp_input.c | 83 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, 153 sctp_abort_association(inp, stcb, m, iphlen, src, dst, sh, NULL, 182 sctp_send_abort(m, iphlen, src, dst, sh, 0, NULL, 195 sctp_send_initiate_ack(inp, stcb, m, iphlen, offset, src, dst, 427 sctp_process_init_ack(struct mbuf *m, int iphlen, in argument 1289 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 1447 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 2031 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 2405 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 4417 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 5616 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 6012 int iphlen; local [all...] |
H A D | ip_mroute.c | 2566 int iphlen = off; local 2591 minlen = iphlen + (datalen >= PIM_REG_MINLEN ? PIM_REG_MINLEN : PIM_MINLEN); 2607 m->m_data += iphlen; 2608 m->m_len -= iphlen; 2637 m->m_data -= iphlen; 2638 m->m_len += iphlen; 2711 m->m_data += (iphlen + PIM_MINLEN); 2712 m->m_len -= (iphlen + PIM_MINLEN); 2718 m->m_data -= (iphlen + PIM_MINLEN); 2719 m->m_len += (iphlen [all...] |
H A D | igmp.c | 1429 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; 1554 igmpv3len = iphlen + IGMP_V3_QUERY_MINLEN + 1563 + iphlen);
|
H A D | sctp_output.c | 4843 * being equal to the beginning of the params i.e. (iphlen + 5342 struct mbuf *init_pkt, int iphlen, int offset, 5396 sctp_send_abort(init_pkt, iphlen, src, dst, sh, 0, NULL, 5407 sctp_send_abort(init_pkt, iphlen, src, dst, sh, 11246 struct mbuf *m, int len, int iphlen, int bad_crc) 11278 len -= iphlen; 11281 offset = iphlen + sizeof(struct sctphdr); 11387 m_copydata(m, iphlen, len, (caddr_t)datap); 11864 sctp_send_abort(struct mbuf *m, int iphlen, struct sockaddr *src, struct sockaddr *dst, argument 11870 if (sctp_is_there_an_abort_here(m, iphlen, 5341 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 11245 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 D | sctputil.c | 3843 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 4077 sctp_send_abort(m, iphlen, src, dst, sh, 0, NULL, 4088 sctp_is_there_an_abort_here(struct mbuf *m, int iphlen, uint32_t * vtagfill) argument 4095 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
|
H A D | sctp_indata.c | 2518 sctp_process_data(struct mbuf **mm, int iphlen, int *offset, int length, argument 2630 sctp_abort_association(inp, stcb, m, iphlen, 2698 m, iphlen, 2767 sctp_send_packet_dropped(stcb, net, *mm, length, iphlen, 0);
|
/freebsd-10.0-release/sys/netipsec/ |
H A D | xform_ipip.c | 111 static void _ipip_input(struct mbuf *m, int iphlen, struct ifnet *gifp); 162 _ipip_input(struct mbuf *m, int iphlen, struct ifnet *gifp) argument 215 if (IN_MULTICAST(((struct ip *)((char *) ipo + iphlen))->ip_dst.s_addr)) { 216 ipip_mroute_input (m, iphlen); 239 m_adj(m, iphlen); 356 IPIPSTAT_ADD(ipips_ibytes, m->m_pkthdr.len - iphlen);
|
/freebsd-10.0-release/sys/netinet6/ |
H A D | sctp6_usrreq.c | 72 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.0-release/sys/net/ |
H A D | flowtable.c | 503 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 D | if_lagg.c | 1549 int iphlen; local 1609 iphlen = ip->ip_hl << 2; 1610 if (iphlen < sizeof(*ip)) 1612 off += iphlen;
|
/freebsd-10.0-release/sys/dev/vxge/ |
H A D | vxge.c | 2488 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;
|