DHCP request packet in c#

吃可爱长大的小学妹 提交于 2019-12-11 09:39:35

问题


hi how can i send a dhcp request/discovery packet using c# to locate dhcp server any idea or snippet


回答1:


See the P/Invoke.net - dhcpsapi in windows. There are also docs about the DHCP APIs on windows here.




回答2:


Grab Wiresharp and the DHCP RFCs

  • DHCP on Wikipedia
  • Wireshark (packet sniffer)
  • RFC2131 - Dynamic Host Configuration Protocol (RFC 2131)
  • RFC2132 - DHCP Options and BOOTP Vendor Extensions (RFC 2132)


来源:https://stackoverflow.com/questions/3986982/dhcp-request-packet-in-c-sharp

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!