Lines Matching defs:opt
1168 struct ip6_opt opt;
1245 if (!pf_pull_hdr(m, ooff, &opt.ip6o_type,
1246 sizeof(opt.ip6o_type), NULL, NULL,
1249 if (opt.ip6o_type == IP6OPT_PAD1) {
1253 if (!pf_pull_hdr(m, ooff, &opt, sizeof(opt),
1256 if (ooff + sizeof(opt) + opt.ip6o_len > optend)
1258 switch (opt.ip6o_type) {
1278 ooff += sizeof(opt) + opt.ip6o_len;
1469 u_int8_t *opt;
1508 opt = hdr + sizeof(struct tcphdr);
1511 switch (*opt) {
1514 opt++;
1518 if (opt[1] >= TCPOLEN_TIMESTAMP) {
1525 memcpy(&tsval, &opt[2],
1527 memcpy(&tsecr, &opt[6],
1536 hlen -= MAX(opt[1], 2);
1537 opt += MAX(opt[1], 2);
1566 u_int8_t *opt;
1610 opt = hdr + sizeof(struct tcphdr);
1613 startoff = opt - (hdr + sizeof(struct tcphdr));
1614 switch (*opt) {
1617 opt++;
1636 if (opt[1] >= TCPOLEN_TIMESTAMP) {
1637 memcpy(&tsval, &opt[2],
1645 &opt[2],
1654 memcpy(&tsecr, &opt[6],
1663 &opt[6],
1673 hlen -= MAX(opt[1], 2);
1674 opt += MAX(opt[1], 2);
1962 int opt, cnt, optlen = 0;
1977 opt = optp[0];
1978 if (opt == TCPOPT_EOL)
1980 if (opt == TCPOPT_NOP)
1989 switch (opt) {