Home
last modified time | relevance | path

Searched refs:optp (Results 1 – 9 of 9) sorted by relevance

/f-stack/freebsd/netinet/
H A Dtcp_output.c1760 *optp++ = TCPOPT_NOP; in tcp_addoptions()
1774 *optp++ = TCPOPT_NOP; in tcp_addoptions()
1786 *optp++ = TCPOPT_NOP; in tcp_addoptions()
1797 *optp++ = TCPOPT_NOP; in tcp_addoptions()
1817 *optp++ = TCPOPT_NOP; in tcp_addoptions()
1828 *optp++ = 0; in tcp_addoptions()
1839 *optp++ = TCPOPT_NOP; in tcp_addoptions()
1844 *optp++ = TCPOPT_SACK; in tcp_addoptions()
1872 *optp++ = total_len; in tcp_addoptions()
1889 *optp++ = TCPOPT_EOL; in tcp_addoptions()
[all …]
H A Dtcp_input.c621 u_char *optp = NULL; in tcp_input() local
801 optp = (u_char *)(th + 1); in tcp_input()
991 tcp_dooptions(&to, optp, optlen, in tcp_input()
1077 tcp_dooptions(&to, optp, optlen, 0); in tcp_input()
1343 tcp_dooptions(&to, optp, optlen, TO_SYN); in tcp_input()
1365 tcp_dooptions(&to, optp, optlen, thflags); in tcp_input()
H A Dtcp_subr.c1404 u_char *optp; in tcp_respond() local
1553 optp = mtod(m->m_next, u_char *); in tcp_respond()
1558 optp = (u_char *) (nth + 1); in tcp_respond()
1575 tlen += optlen = tcp_addoptions(&to, optp); in tcp_respond()
/f-stack/freebsd/netpfil/pf/
H A Dpf_osfp.c101 const u_int8_t *optp; in pf_osfp_fingerprint_hdr() local
139 optp = (const u_int8_t *)((const char *)tcp + sizeof(*tcp)); in pf_osfp_fingerprint_hdr()
140 for (; cnt > 0; cnt -= optlen, optp += optlen) { in pf_osfp_fingerprint_hdr()
141 if (*optp == TCPOPT_EOL) in pf_osfp_fingerprint_hdr()
145 if (*optp == TCPOPT_NOP) { in pf_osfp_fingerprint_hdr()
152 optlen = optp[1]; in pf_osfp_fingerprint_hdr()
155 switch (*optp) { in pf_osfp_fingerprint_hdr()
158 memcpy(&fp.fp_mss, &optp[2], in pf_osfp_fingerprint_hdr()
166 memcpy(&fp.fp_wscale, &optp[2], in pf_osfp_fingerprint_hdr()
180 memcpy(&ts, &optp[2], sizeof(ts)); in pf_osfp_fingerprint_hdr()
H A Dpf_norm.c1935 u_char *optp = opts; in pf_normalize_tcpopt() local
1945 for (; cnt > 0; cnt -= optlen, optp += optlen) { in pf_normalize_tcpopt()
1946 startoff = optp - opts; in pf_normalize_tcpopt()
1947 opt = optp[0]; in pf_normalize_tcpopt()
1955 optlen = optp[1]; in pf_normalize_tcpopt()
1961 mss = (u_int16_t *)(optp + 2); in pf_normalize_tcpopt()
/f-stack/freebsd/netinet6/
H A Draw_ip6.c402 struct ip6_pktopts opt, *optp; in rip6_output() local
425 optp = &opt; in rip6_output()
427 optp = inp->in6p_outputopts; in rip6_output()
435 if (!optp || !optp->ip6po_pktinfo || in rip6_output()
436 !optp->ip6po_pktinfo->ipi6_ifindex) in rip6_output()
481 error = in6_selectsrc_socket(dstsock, optp, inp, so->so_cred, in rip6_output()
554 error = ip6_output(m, optp, NULL, 0, inp->in6p_moptions, &oifp, inp); in rip6_output()
H A Dudp6_usrreq.c707 struct ip6_pktopts *optp, opt; in udp6_output() local
823 optp = &opt; in udp6_output()
825 optp = inp->in6p_outputopts; in udp6_output()
855 error = in6_selectsrc_socket(sin6, optp, inp, in udp6_output()
975 error = ip6_output(m, optp, in udp6_output()
H A Dip6_output.c1844 struct ip6_pktopts **optp; in ip6_ctloutput() local
1856 optp = &inp->in6p_outputopts; in ip6_ctloutput()
1859 optp, (td != NULL) ? td->td_ucred : in ip6_ctloutput()
1996 struct ip6_pktopts **optp; in ip6_ctloutput() local
2002 optp = &inp->in6p_outputopts; in ip6_ctloutput()
2005 optp, (td != NULL) ? td->td_ucred : in ip6_ctloutput()
2070 struct ip6_pktopts **optp; in ip6_ctloutput() local
2094 optp = &inp->in6p_outputopts; in ip6_ctloutput()
2096 optp, (td != NULL) ? td->td_ucred : NULL, in ip6_ctloutput()
H A Dip6_input.c1132 ip6_unknown_opt(u_int8_t *optp, struct mbuf *m, int off) in ip6_unknown_opt() argument
1136 switch (IP6OPT_TYPE(*optp)) { in ip6_unknown_opt()
1138 return ((int)*(optp + 1)); in ip6_unknown_opt()