Searched refs:optp (Results 1 - 22 of 22) sorted by last modified time

/freebsd-11-stable/sys/netinet/
H A Dtcp_output.c1676 * optp in a consistent way. Can handle unaligned destinations.
1692 tcp_addoptions(struct tcpopt *to, u_char *optp) argument
1705 *optp++ = TCPOPT_NOP;
1710 *optp++ = TCPOPT_MAXSEG;
1711 *optp++ = TCPOLEN_MAXSEG;
1713 bcopy((u_char *)&to->to_mss, optp, sizeof(to->to_mss));
1714 optp += sizeof(to->to_mss);
1719 *optp++ = TCPOPT_NOP;
1724 *optp++ = TCPOPT_WINDOW;
1725 *optp
[all...]
H A Dtcp_input.c581 u_char *optp = NULL; local
764 optp = (u_char *)(th + 1);
995 tcp_dooptions(&to, optp, optlen,
1120 tcp_dooptions(&to, optp, optlen, 0);
1389 tcp_dooptions(&to, optp, optlen, TO_SYN);
1418 tcp_dooptions(&to, optp, optlen, thflags);
H A Dtcp_subr.c880 u_char *optp; local
1028 optp = mtod(m->m_next, u_char *);
1033 optp = (u_char *) (nth + 1);
1050 tlen += optlen = tcp_addoptions(&to, optp);
/freebsd-11-stable/usr.sbin/bsnmpd/tools/libbsnmptools/
H A Dbsnmptools.c315 getsubopt1(char **arg, const char *const *options, char **valp, char **optp) argument
321 *optp = NULL;
331 *optp = ptr;
353 if (strcmp(*optp, *options) == 0)
/freebsd-11-stable/sys/netinet6/
H A Dip6_output.c1637 struct ip6_pktopts **optp; local
1644 optp = &in6p->in6p_outputopts;
1647 optp, (td != NULL) ? td->td_ucred :
1781 struct ip6_pktopts **optp; local
1782 optp = &in6p->in6p_outputopts;
1785 optp, (td != NULL) ? td->td_ucred :
1849 struct ip6_pktopts **optp; local
1868 optp = &in6p->in6p_outputopts;
1870 optp, (td != NULL) ? td->td_ucred : NULL,
H A Dip6_input.c1165 ip6_unknown_opt(u_int8_t *optp, struct mbuf *m, int off) argument
1169 switch (IP6OPT_TYPE(*optp)) {
1171 return ((int)*(optp + 1));
H A Dudp6_usrreq.c658 struct ip6_pktopts *optp, opt; local
694 optp = &opt;
696 optp = inp->in6p_outputopts;
751 error = in6_selectsrc_socket(sin6, optp, inp,
897 error = ip6_output(m, optp, &inp->inp_route6, flags,
H A Draw_ip6.c396 struct ip6_pktopts opt, *optp; local
420 optp = &opt;
422 optp = in6p->in6p_outputopts;
430 if (!optp || !optp->ip6po_pktinfo ||
431 !optp->ip6po_pktinfo->ipi6_ifindex)
465 error = in6_selectsrc_socket(dstsock, optp, in6p, so->so_cred,
537 error = ip6_output(m, optp, NULL, 0, in6p->in6p_moptions, &oifp, in6p);
/freebsd-11-stable/bin/ps/
H A Dps.c1346 char *argp, *cp, *newopts, *ns, *optp, *pidp; local
1355 optp = strchr(optlist, *cp);
1356 if ((optp != NULL) && *(optp + 1) == ':') {
/freebsd-11-stable/sys/netpfil/pf/
H A Dpf_norm.c1754 u_char *optp = opts; local
1763 for (; cnt > 0; cnt -= optlen, optp += optlen) {
1764 opt = optp[0];
1772 optlen = optp[1];
1778 mss = (u_int16_t *)(optp + 2);
H A Dpf_osfp.c99 const u_int8_t *optp; local
138 optp = (const u_int8_t *)((const char *)tcp + sizeof(*tcp));
139 for (; cnt > 0; cnt -= optlen, optp += optlen) {
140 if (*optp == TCPOPT_EOL)
144 if (*optp == TCPOPT_NOP) {
151 optlen = optp[1];
154 switch (*optp) {
157 memcpy(&fp.fp_mss, &optp[2],
165 memcpy(&fp.fp_wscale, &optp[2],
179 memcpy(&ts, &optp[
[all...]
/freebsd-11-stable/contrib/telnet/telnet/
H A Dcommands.c2825 * optp: pointer to an integer that should be filled in with
2849 * *optp: This will be filled in with appropriate option for
2853 sourceroute(struct addrinfo *ai, char *arg, unsigned char **cpp, int *lenp, int *protop, int *optp)
2909 *optp = IPV6_RTHDR;
2930 *optp = IP_OPTIONS;
2844 sourceroute(struct addrinfo *ai, char *arg, unsigned char **cpp, int *lenp, int *protop, int *optp) argument
/freebsd-11-stable/bin/sh/
H A Doptions.h41 char **optp; /* parameter list for getopts */ member in struct:shparam
H A Deval.c1034 shellparam.optp = NULL;
H A Doptions.c337 shellparam.optp = NULL;
357 if (param->optp) {
358 for (ap = param->optp ; *ap ; ap++)
360 ckfree(param->optp);
441 if (shellparam.optp) {
442 for (ap = shellparam.optp ; *ap ; ap++)
444 ckfree(shellparam.optp);
445 shellparam.optp = NULL;
448 shellparam.optp = ckmalloc((argc - 2) * sizeof *ap);
449 memset(shellparam.optp, '\
[all...]
/freebsd-11-stable/contrib/bsnmp/snmpd/
H A Dmain.c1433 getsubopt1(char **arg, const char *const *options, char **valp, char **optp) argument
1439 *optp = NULL;
1449 *optp = ptr;
1471 if (strcmp(*optp, *options) == 0)
/freebsd-11-stable/contrib/amd/amd/
H A Dopts.c72 char **optp; /* Pointer to option value string */ member in struct:opt
514 *op->optp = opt; /* actual assignment into fs_static */
1187 val = *op->optp;
/freebsd-11-stable/crypto/heimdal/appl/telnet/telnet/
H A Dcommands.c2493 * protop/optp:
2505 * The caller needs to pass return value (len), *cpp, *protop and *optp
2514 * *optp: option # to be passed to setsockopt(2).
2522 int *optp)
2566 *optp = IP_OPTIONS;
2577 *optp = IPV6_PKTOPTIONS;
2509 sourceroute(struct addrinfo *ai, char *arg, char **cpp, int *protop, int *optp) argument
H A Dexterns.h213 int *prototp, int *optp);
/freebsd-11-stable/contrib/flex/
H A Dscanopt.c719 const optspec_t *optp;
813 optp = s->options + opt_offset;
828 return optp->r_val;
846 return optp->r_val;
853 return optp->r_val;
715 const optspec_t *optp; local
/freebsd-11-stable/lib/libc/net/
H A Dip6opt.c299 u_int8_t *optp, *lim; local
328 for (optp = *tptrp; optp < lim; optp += optlen) {
329 if (*optp == type) {
330 *tptrp = optp;
333 if ((optlen = ip6optlen(optp, lim)) == 0)
443 u_int8_t *optp = (u_int8_t *)extbuf + offset; local
447 *optp = IP6OPT_PAD1;
448 optp
504 u_int8_t *optp, *lim; local
553 u_int8_t *optp, *lim; local
[all...]
/freebsd-11-stable/usr.sbin/mld6query/
H A Dmld6.c184 void *hbhbuf = NULL, *optp = NULL; local
276 2, &optp)) == -1)
279 (void)inet6_opt_set_val(optp, 0, &rtalert_code, sizeof(rtalert_code));

Completed in 355 milliseconds