I suppose you are on Win9x. Under this platform, PPP is exported by NDIS like an ethernet adapter (with ' SRC\0\0' and 'DEST\0\0' as MAC addresses), so PacketGetNetType will return NdisMedium802_3. You can probably detect if an interface is a PPP link looking at its speed, returned by PacketGetNetType as well. As far as I know, sending is not allowed on PPP interfaces, ask the reason to Microsoft.
Loris ----- Original Message ----- From: "Octavian" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, April 18, 2002 9:02 PM Subject: [WinPcap-users] Sending packets over a PPP link and finding IPs of an interface > Hi! > > I have some questions. I'm using packet.dll library. > -How do I send IP packets over a PPP Link (dial-up)? > I don't know exactly how to set the source and destination MAC addresses > when sending over a PPP interface. I dumped some traffic and saw that the > MAC addresses were ' SRC\0\0' and 'DEST\0\0' when sending a packet and > reversed when receiving but I tried to send a packet and it didn't get sent. > What can I do? > -How can I get the type of interface (ethernet, PPP, etc)? > -How can I find out the IP address of an interface? > > Anyway, good job with this winpcap. I'm tired of winsock... windoze raw > sockets=useless. > > Thanks, > -Druid > >
