Home
last modified time | relevance | path

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

/external/scapy/scapy/layers/
Ddhcp6.py1269 startip="2001:db8::1", endip="2001:db8::20", duid=None, argument
1335 if duid is not None:
1336 self.duid = duid
1347 self.duid = DUID_LLT(timeval = timeval, lladdr = mac)
1351 self.duid.show(label_lvl=" "*4)
1415 duid = p[DHCP6OptServerId].duid
1416 if not isinstance(duid, type(self.duid)):
1418 if raw(duid) != raw(self.duid):
1480 duid = p[DHCP6OptServerId].duid
1481 if not isinstance(duid, type(self.duid)):
[all …]
/external/scapy/test/
Danswering_machines.uts68 a.parse_options(dns="2001:500::1035", domain="localdomain, local", duid=None,
78 req = IPv6(dst="::1")/UDP()/DHCP6(msgtype=1)/DHCP6OptClientId(duid=DUID_LLT())
89 req = IPv6(dst="::1")/UDP()/DHCP6(msgtype=11)/DHCP6OptClientId(duid=DUID_LLT())
99 …v6(dst="::1")/UDP()/DHCP6(msgtype=3)/DHCP6OptClientId(duid=DUID_LLT())/DHCP6OptServerId(duid=a.dui…
Dregression.uts3583 raw(DHCP6OptClientId(duid="toto")) == b'\x00\x01\x00\x04toto'
3586 raw(DHCP6OptClientId(duid=DUID_LL())) == b'\x00\x01\x00\n\x00\x03\x00\x01\x00\x00\x00\x00\x00\x00'
3589 raw(DHCP6OptClientId(duid=DUID_LLT())) == b'\x00\x01\x00\x0e\x00\x01\x00\x01\x00\x00\x00\x00\x00\x0…
3592 raw(DHCP6OptClientId(duid=DUID_EN())) == b'\x00\x01\x00\x06\x00\x02\x00\x00\x017'
3595 raw(DHCP6OptClientId(optlen=80, duid="somestring")) == b'\x00\x01\x00Psomestring'
3602 raw(DHCP6OptClientId(optlen=80, duid="somestring")) == b'\x00\x01\x00Psomestring'
3608 = DHCP6OptClientId dissection with specific duid value
3610 a.optcode == 1 and a.optlen == 4 and isinstance(a.duid, Raw) and a.duid.load == b'some' and isinsta…
3612 = DHCP6OptClientId dissection with specific DUID_LL as duid value
3614 … == 1 and a.optlen == 10 and isinstance(a.duid, DUID_LL) and a.duid.type == 3 and a.duid.hwtype ==…
[all …]
/external/toybox/toys/pending/
Ddhcp6.c127 static DUID *duid; variable
188 if(!duid) { in fill_clientID()
190 duid = (DUID*)malloc(sizeof(DUID)); in fill_clientID()
191 duid->type = htons(1); in fill_clientID()
192 duid->hwtype = htons(1); in fill_clientID()
193 duid->time = htonl((uint32_t)(time(NULL) - 946684800) & 0xffffffff); in fill_clientID()
196 memcpy(duid->lladdr,mac, 6); in fill_clientID()
197 memcpy(tmp,(uint8_t*)duid,sizeof(DUID)); in fill_clientID()
201 memcpy(tmp,(uint8_t*)duid,sizeof(DUID)); in fill_clientID()
Ddhcpd.c186 uint8_t duid[20]; member
203 uint8_t duid[20]; member
1306 static int verifyip6_in_lease(uint8_t *nip6, uint8_t *duid, uint16_t ia_type, uint32_t iaid) in verifyip6_in_lease() argument
1315 if (!memcmp(((dyn_lease6*) listdls->arg)->duid, duid, ((dyn_lease6*) listdls->arg)->duid_len) in verifyip6_in_lease()
1384 static int addip6_to_lease(uint8_t *assigned_nip, uint8_t *duid, uint16_t duid_len, uint16_t ia_typ… in addip6_to_lease() argument
1391 if (!memcmp(((dyn_lease6*) listdls->arg)->duid, duid, ((dyn_lease6*) listdls->arg)->duid_len)) { in addip6_to_lease()
1401 memcpy(dls6->duid, duid, duid_len); in addip6_to_lease()
1480 static uint8_t *getip6_from_pool(uint8_t *duid, uint16_t duid_len, uint16_t ia_type, uint32_t iaid,… in getip6_from_pool() argument
1487 if (!memcmp(((dyn_lease6*)listdls6->arg)->duid, duid, duid_len)) { in getip6_from_pool()
1494 if(verifyip6_in_lease(nip6, duid, ia_type, iaid) < 0) in getip6_from_pool()
[all …]