Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

expected constant BitVector(2 bits, 0xc) but got BitVector(2 bits, 0x0) #166

Open
nefilim opened this issue Oct 30, 2023 · 1 comment
Open

Comments

@nefilim
Copy link

nefilim commented Oct 30, 2023

Hi - great library, thank you!

Scanning for the same service it always terminates with a variant of this exception (usually does find the service first):

fs2.interop.scodec.CodecError: ansection/2/rdata: expected constant BitVector(2 bits, 0xc) but got BitVector(2 bits, 0x0)
fs2.interop.scodec.CodecError: ansection/0/rdata: expected constant BitVector(2 bits, 0xc) but got BitVector(2 bits, 0x0)
fs2.interop.scodec.CodecError: qdsection/0/qname: expected constant BitVector(2 bits, 0xc) but got BitVector(2 bits, 0x0)

so in various sections of the responses - any idea why? Is there some unusual case not being handled?

Thanks!
Peter

@nefilim
Copy link
Author

nefilim commented Oct 30, 2023

Just some additional information, I've tried constraining the scan interface to my primary (wifi in this case) interface but no change.

Here's the scan output before it fails:

Instance(Service(lutron,tcp,local),Lutron Status._lutron._tcp.local,22,Lutron-05719a97.local,HashMap(FW_STATUS -> 1:NoUpdate, CLAIM_STATUS -> Claimed, ST_STATUS -> good, DEVCLASS -> 081B0101, NW_STATUS -> InternetWorking, CODEVER -> 23.06.24f000, SYSTYPE -> RadioRa3Processor, MACADDR -> xxx, SERNUM -> xxx),List(/192.168.100.172, /fe80:0:0:0:3aab:41ff:fe83:c4e6, /fda7:fe01:357a:4676:3aab:41ff:fe83:c4e6, /fd49:4044:8744:1:3aab:41ff:fe83:c4e6))

Here's dns-sd output:

at 10:06:12 ❯ dns-sd -Z _lutron local         
Browsing for _lutron._tcp.local
DATE: ---Mon 30 Oct 2023---
10:13:37.167  ...STARTING...

; To direct clients to browse a different domain, substitute that domain in place of '@'
lb._dns-sd._udp                                 PTR     @

; In the list of services below, the SRV records will typically reference dot-local Multicast DNS names.
; When transferring this zone file data to your unicast DNS server, you'll need to replace those dot-local
; names with the correct fully-qualified (unicast) domain name of the target host offering the service.

_lutron._tcp                                    PTR     Lutron\032Status._lutron._tcp
Lutron\032Status._lutron._tcp                   SRV     0 0 22 Lutron-05719a97.local. ; Replace with unicast FQDN of target host
Lutron\032Status._lutron._tcp                   TXT     "MACADDR=xx" "CODEVER=23.06.24f000" "DEVCLASS=081B0101" "FW_STATUS=1:NoUpdate" "NW_STATUS=InternetWorking" "ST_STATUS=good" "SYSTYPE=RadioRa3Processor" "CLAIM_STATUS=Claimed" "SERNUM=xxx"
at 10:13:39 ❯ dns-sd -q Lutron-05719a97.local.
DATE: ---Mon 30 Oct 2023---
10:14:40.970  ...STARTING...
Timestamp     A/R  Flags         IF  Name                          Type   Class  Rdata
10:14:40.972  Add  40000002      12  Lutron-05719a97.local.        Addr   IN     192.168.100.172

Which of the dns-sd commands is equivalent to the PTR question the scan() ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant