mdlayher / raw

Package raw enables reading and writing data at the device driver level for a network interface. MIT Licensed.
MIT License
425 stars 71 forks source link

how to capture lldp packets without promiscuous mode? #60

Closed qinze118 closed 4 years ago

qinze118 commented 4 years ago

@mdlayher hello expert, I have an question that how to capture lldp packets without promiscuous mode,I want use your code handle this, please help me ,thanks!

mdlayher commented 4 years ago

This library doesn't set promiscuous mode by default, so opening a socket for LLDP Ethernet frames and reading them should just work.

This isn't the best place for questions, so closing. I'd recommend joining #networking on Gophers Slack or similar.

qinze118 commented 4 years ago

thank you!