问题
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