Home
last modified time | relevance | path

Searched refs:optcode (Results 1 – 5 of 5) sorted by relevance

/external/scapy/test/
Dedns0.uts13 tlv = EDNS0TLV(optcode=42, optlen=12, optdata="edns0tlv")
22 tlv.optcode == 42 and tlv.optlen == 8 and tlv.optdata == b"edns0tlv"
35 …ype=42, rclass=123, extrcode=1, version=2, z=3, rdlen=4, rdata=[EDNS0TLV(optcode=42, optlen=12, op…
40 opt.rrname == b"rropt." and opt.rdlen == 12 and opt.rdata[0].optcode == 42 and opt.rdata[0].optdata…
45 tlv = EDNS0TLV(optcode=5, optdata=b"\x00\x11\x22\x33")
53 …ype="A", qname="www.edns-ping.org.")], ar=[DNSRROPT(z=0, rdata=[EDNS0TLV(optcode="PING", optdata=b…
55 #len(r.ar) and r.ar.rdata[0].optcode == 4 # XXX: should be 5
60 tlv = EDNS0TLV(optcode=2, optdata="")
67 …NS(qd=[DNSQR(qtype="SOA", qname=".")], ar=[DNSRROPT(z=0, rdata=[EDNS0TLV(optcode="NSID")])]), time…
69 … in r.ar and len(r.ar[DNSRROPT].rdata) and len([x for x in r.ar[DNSRROPT].rdata if x.optcode == 3])
Dregression.uts2629 raw(ICMPv6NDOptIPAddr(len=5, optcode=0xff, plen=40, res=0xeeeeeeee, addr="ffff::1111")) == b'\x11\x…
2633 a.type == 17 and a.len == 3 and a.optcode == 1 and a.plen == 64 and a.res == 0 and a.addr == "::"
2637 a.type == 17 and a.len == 5 and a.optcode == 0xff and a.plen == 40 and a.res == 0xeeeeeeee and a.ad…
2648 raw(ICMPv6NDOptNewRtrPrefix(len=5, optcode=0xff, plen=40, res=0xeeeeeeee, prefix="ffff::1111")) == …
2652 a.type == 18 and a.len == 3 and a.optcode == 0 and a.plen == 64 and a.res == 0 and a.prefix == "::"
2656 a.type == 18 and a.len == 5 and a.optcode == 0xff and a.plen == 40 and a.res == 0xeeeeeeee and a.pr…
2667 raw(ICMPv6NDOptLLA(len=2, optcode=3, lla="ff:11:ff:11:ff:11")) == b'\x13\x02\x03\xff\x11\xff\x11\xf…
2671 a.type == 19 and a.len == 1 and a.optcode == 0 and a.lla == "00:00:00:00:00:00"
2675 a.type == 19 and a.len == 2 and a.optcode == 3 and a.lla == "ff:11:ff:11:ff:11"
3599 a.optcode == 1 and a.optlen == 0
[all …]
/external/toybox/toys/pending/
Ddhcpd.c545 uint32_t optcode = 0, inf = infomode, convtmp, mask, nip, router; in strtoopt() local
553 strtou32(option, (uint32_t*)&optcode); in strtoopt()
556 if (optcode > 0 && optcode < 256) { // raw option in strtoopt()
558 if ((options_list[count].code & 0X00FF) == optcode) { in strtoopt()
567 optcode = (options_list[count].code & 0X00FF); in strtoopt()
577 if (!flag || !optcode) return -1; in strtoopt()
1103 uint16_t optcode; in get_optval6() local
1106 memcpy(&optcode, optptr, sizeof(uint16_t)); in get_optval6()
1108 if(!optcode) { in get_optval6()
1112 optcode = ntohs(optcode); in get_optval6()
[all …]
Ddhcp.c390 long optcode = 0, convtmp; in strtoopt() local
400 optcode = strtou32(option); in strtoopt()
402 if (optcode > 0 && optcode < 256) { // raw option in strtoopt()
404 if ((options_list[count].code & 0X00FF) == optcode) { in strtoopt()
414 optcode = (options_list[count].code & 0X00FF); in strtoopt()
420 if (!flag || !optcode) return -1; in strtoopt()
421 if (optonly) return optcode; in strtoopt()
/external/scapy/scapy/layers/
Ddhcp6.py312 optcode = 2 variable in DHCP6OptServerId