| |

VerySource

 Forgot password?
 Register
Search
View: 1000|Reply: 6

With SOCKET, how do I send ARP request packets?

[Copy link]

1

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-3-22 07:30:01
| Show all posts |Read mode
As the question, I don't know if system.net.sockets.socket can send the ARP request packet filled by myself. If it can be sent, what should I do?
In addition, how to accept the reply packet.
Thank you.
Reply

Use magic Report

0

Threads

36

Posts

22.00

Credits

Newbie

Rank: 1

Credits
22.00

 China

Post time: 2020-7-3 10:15:02
| Show all posts
The SendARP function sends an ARP request to obtain the physical address that corresponds to the specified destination IP address.

DWORD SendARP(
  IPAddr DestIP,
  IPAddr SrcIP,
  PULONG pMacAddr,
  PULONG PhyAddrLen
);
Reply

Use magic Report

0

Threads

3

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 Japan

Post time: 2020-7-29 22:45:01
| Show all posts
Socket can only send protocol data based on the IP protocol, the arp protocol and the IP protocol are parallel, and there is no subordination relationship
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-8-18 20:45:01
| Show all posts
Own package (can exhibit rfc documents), and use winpcap library to send package
Reply

Use magic Report

1

Threads

3

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

Post time: 2020-8-22 17:15:01
| Show all posts
SOCKET as long as it is an IP packet can be sent, you can close the ARP packet yourself
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-8-30 19:15:01
| Show all posts
What version is system.net.sockets.socket? Is the package complete?
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-9-1 22:00:01
| Show all posts
So is it necessary to write the arp package directly into the mac frame? Do not put in the ip package.
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list