Home
last modified time | relevance | path

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

/dragonfly/lib/libc/net/
HDip6opt.c287 u_int8_t *optp, *lim; in inet6_option_find() local
316 for (optp = *tptrp; optp < lim; optp += optlen) { in inet6_option_find()
317 if (*optp == type) { in inet6_option_find()
318 *tptrp = optp; in inet6_option_find()
321 if ((optlen = ip6optlen(optp, lim)) == 0) in inet6_option_find()
431 u_int8_t *optp = (u_int8_t *)extbuf + offset; in inet6_opt_append() local
435 *optp = IP6OPT_PAD1; in inet6_opt_append()
436 optp++; in inet6_opt_append()
439 *optp++ = IP6OPT_PADN; in inet6_opt_append()
440 *optp++ = padlen - 2; in inet6_opt_append()
[all …]
/dragonfly/bin/sh/
HDoptions.c336 shellparam.optp = NULL; in setparam()
356 if (param->optp) { in freeparam()
357 for (ap = param->optp ; *ap ; ap++) in freeparam()
359 ckfree(param->optp); in freeparam()
440 if (shellparam.optp) { in getoptscmd()
441 for (ap = shellparam.optp ; *ap ; ap++) in getoptscmd()
443 ckfree(shellparam.optp); in getoptscmd()
444 shellparam.optp = NULL; in getoptscmd()
447 shellparam.optp = ckmalloc((argc - 2) * sizeof *ap); in getoptscmd()
448 memset(shellparam.optp, '\0', (argc - 2) * sizeof *ap); in getoptscmd()
[all …]
HDoptions.h43 char **optp; /* parameter list for getopts */ member
HDeval.c1028 shellparam.optp = NULL; in evalcommand()
/dragonfly/sys/netinet6/
HDraw_ip6.c279 struct ip6_pktopts opt, *optp = NULL; in rip6_output() local
306 optp = &opt; in rip6_output()
308 optp = in6p->in6p_outputopts; in rip6_output()
347 if (optp && (pi = optp->ip6po_pktinfo) && pi->ipi6_ifindex) { in rip6_output()
373 if ((in6a = in6_selectsrc(dstsock, optp, in6p->in6p_moptions, in rip6_output()
421 error = ip6_output(m, optp, &in6p->in6p_route, 0, in rip6_output()
437 if (optp == &opt && optp->ip6po_rthdr && optp->ip6po_route.ro_rt) in rip6_output()
438 RTFREE(optp->ip6po_route.ro_rt); in rip6_output()
440 if (optp == &opt) in rip6_output()
441 ip6_clearpktopts(optp, -1); in rip6_output()
HDip6_output.c1260 struct ip6_pktopts **optp; in ip6_ctloutput() local
1267 optp = &in6p->in6p_outputopts; in ip6_ctloutput()
1270 optp, uproto); in ip6_ctloutput()
1390 struct ip6_pktopts **optp; in ip6_ctloutput() local
1391 optp = &in6p->in6p_outputopts; in ip6_ctloutput()
1394 optp, uproto); in ip6_ctloutput()
1452 struct ip6_pktopts **optp; in ip6_ctloutput() local
1471 optp = &in6p->in6p_outputopts; in ip6_ctloutput()
1473 optp, uproto); in ip6_ctloutput()
HDip6_input.c1014 ip6_unknown_opt(u_int8_t *optp, struct mbuf *m, int off) in ip6_unknown_opt() argument
1018 switch (IP6OPT_TYPE(*optp)) { in ip6_unknown_opt()
1020 return ((int)*(optp + 1)); in ip6_unknown_opt()
/dragonfly/sys/net/pf/
HDpf_osfp.c118 const u_int8_t *optp; in pf_osfp_fingerprint_hdr() local
185 optp = (const u_int8_t *)((const char *)tcp + sizeof(*tcp)); in pf_osfp_fingerprint_hdr()
186 for (; cnt > 0; cnt -= optlen, optp += optlen) { in pf_osfp_fingerprint_hdr()
187 if (*optp == TCPOPT_EOL) in pf_osfp_fingerprint_hdr()
191 if (*optp == TCPOPT_NOP) { in pf_osfp_fingerprint_hdr()
198 optlen = optp[1]; in pf_osfp_fingerprint_hdr()
201 switch (*optp) { in pf_osfp_fingerprint_hdr()
204 memcpy(&fp.fp_mss, &optp[2], in pf_osfp_fingerprint_hdr()
212 memcpy(&fp.fp_wscale, &optp[2], in pf_osfp_fingerprint_hdr()
225 memcpy(&ts, &optp[2], sizeof(ts)); in pf_osfp_fingerprint_hdr()
HDpf_norm.c1916 u_char *optp = opts; in pf_normalize_tcpopt() local
1925 for (; cnt > 0; cnt -= optlen, optp += optlen) { in pf_normalize_tcpopt()
1926 opt = optp[0]; in pf_normalize_tcpopt()
1934 optlen = optp[1]; in pf_normalize_tcpopt()
1940 mss = (u_int16_t *)(optp + 2); in pf_normalize_tcpopt()
/dragonfly/sys/netinet/
HDtcp_syncache.c1131 u_int8_t *optp; in syncache_respond() local
1255 optp = (u_int8_t *)(th + 1); in syncache_respond()
1256 *optp++ = TCPOPT_MAXSEG; in syncache_respond()
1257 *optp++ = TCPOLEN_MAXSEG; in syncache_respond()
1258 *optp++ = (mssopt >> 8) & 0xff; in syncache_respond()
1259 *optp++ = mssopt & 0xff; in syncache_respond()
1262 *((u_int32_t *)optp) = htonl(TCPOPT_NOP << 24 | in syncache_respond()
1265 optp += 4; in syncache_respond()
1269 u_int32_t *lp = (u_int32_t *)(optp); in syncache_respond()
1275 optp += TCPOLEN_TSTAMP_APPA; in syncache_respond()
[all …]
HDtcp_input.c644 u_char *optp = NULL; in tcp_input() local
781 optp = (u_char *)(th + 1); in tcp_input()
1118 tcp_dooptions(&to, optp, optlen, TRUE, th->th_ack); in tcp_input()
1170 tcp_dooptions(&to, optp, optlen, (thflags & TH_SYN) != 0, th->th_ack); in tcp_input()
/dragonfly/contrib/flex/src/
HDscanopt.c660 const optspec_t *optp; in scanopt() local
754 optp = s->options + opt_offset; in scanopt()
768 return optp->r_val; in scanopt()
785 return optp->r_val; in scanopt()
792 return optp->r_val; in scanopt()
/dragonfly/sys/kern/
HDvfs_subr.c1934 vfs_flagstostr(int flags, const struct mountctl_opt *optp, in vfs_flagstostr() argument
1980 if (optp == NULL) in vfs_flagstostr()
1981 optp = optnames; in vfs_flagstostr()
1988 for (; flags && optp->o_opt; ++optp) { in vfs_flagstostr()
1989 if ((flags & optp->o_opt) == 0) in vfs_flagstostr()
1991 optlen = strlen(optp->o_name); in vfs_flagstostr()
2005 bcopy(optp->o_name, buf + bwritten, optlen); in vfs_flagstostr()
2008 flags &= ~optp->o_opt; in vfs_flagstostr()
/dragonfly/usr.bin/telnet/
HDcommands.c2769 sourceroute(struct addrinfo *ai, char *arg, char **cpp, int *lenp, int *protop, int *optp) in sourceroute() argument
2828 *optp = IPV6_PKTOPTIONS; in sourceroute()
2852 *optp = IP_OPTIONS; in sourceroute()
/dragonfly/sys/sys/
HDvnode.h521 size_t vfs_flagstostr(int flags, const struct mountctl_opt *optp, char *buf, size_t len, int *er…