jbaublitz / neli

Rust type safe netlink library
BSD 3-Clause "New" or "Revised" License
180 stars 35 forks source link

Update nl80211 example #240

Closed a-gavin closed 4 months ago

a-gavin commented 4 months ago

Update the nl80211 example to print out a couple of attributes. As it stands currently, the output is this on my machine with one radio:

$ cargo run --example nl80211
   Compiling neli v0.7.0-rc2 (/home/alex/dev/linux_net/nl80211_rust/neli)
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.56s
     Running `target/debug/examples/nl80211`
msg=UnrecognizedConst(36)
msg=UnrecognizedConst(3)

After the changes, the output is this:

$ cargo run --example nl80211
   Compiling neli v0.7.0-rc2 (/home/alex/dev/linux_net/nl80211_rust/neli)
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.79s
     Running `target/debug/examples/nl80211`
Wiphy:      0
WiphyName:  phy0
jbaublitz commented 4 months ago

Hi, I'll try to take a look at this soon. I have no immediate concerns, so I should be able to get around to it sometime this week.

jbaublitz commented 4 months ago

Hi @a-gavin, I think this looks good. Merging.