Lines Matching defs:opt
1173 struct ip6_opt opt;
1254 if (!pf_pull_hdr(m, ooff, &opt.ip6o_type,
1255 sizeof(opt.ip6o_type), NULL, NULL,
1258 if (opt.ip6o_type == IP6OPT_PAD1) {
1262 if (!pf_pull_hdr(m, ooff, &opt, sizeof(opt),
1265 if (ooff + sizeof(opt) + opt.ip6o_len > optend)
1267 if (opt.ip6o_type == IP6OPT_JUMBO)
1269 ooff += sizeof(opt) + opt.ip6o_len;
1449 u_int8_t *opt;
1486 opt = hdr + sizeof(struct tcphdr);
1489 switch (*opt) {
1492 opt++;
1496 if (opt[1] >= TCPOLEN_TIMESTAMP) {
1503 memcpy(&tsval, &opt[2],
1505 memcpy(&tsecr, &opt[6],
1514 hlen -= MAX(opt[1], 2);
1515 opt += MAX(opt[1], 2);
1544 u_int8_t *opt;
1588 opt = hdr + sizeof(struct tcphdr);
1591 startoff = opt - (hdr + sizeof(struct tcphdr));
1592 switch (*opt) {
1595 opt++;
1614 if (opt[1] >= TCPOLEN_TIMESTAMP) {
1615 memcpy(&tsval, &opt[2],
1623 &opt[2],
1632 memcpy(&tsecr, &opt[6],
1641 &opt[6],
1651 hlen -= MAX(opt[1], 2);
1652 opt += MAX(opt[1], 2);
1936 int opt, cnt, optlen = 0;
1951 opt = optp[0];
1952 if (opt == TCPOPT_EOL)
1954 if (opt == TCPOPT_NOP)
1963 switch (opt) {