Hi, > When you want to send a frame through an interface basicly you have to know: > the source MAC address (do a PacketRequest with OID_802_3_CURRENT_ADDRESS on > the adapter), the destination MAC address, the source IP and the destination > IP. How do you find out the source IP?
Well, there are different methods. With WinPcap, you can use PacketGetNetInfo(), PacketGetNetInfoEx() or pcap_lookupnet(). > So let's say we know the destination IP... do I have to do an ARP request to > find out what's that IP's MAC address? On a LAN, yes. Loris. > In the case of a PPP link (like dialup) the src MAC is probably ' SRC\0' and > the destination MAC 'DEST\0\0'. Again, how do we find out the src IP? > > -Druid >
