• Finding pCookie for an Ethernet driver ioctl...

    From anilkasamsetty@gmail.com@21:1/5 to James Marshall on Wed Nov 6 01:52:23 2019
    On Monday, October 30, 2000 at 9:13:25 PM UTC+5:30, James Marshall wrote:
    From what I can see, the change of the MAC (ioctl EIOCSADDR) is known to the
    driver only. After the change the simple ping will not work... If I do the change on startup, when system reads the MAC (and return the new MAC), it is
    fine... So the runtime change is not "propagated" automatically through out the
    OS... There has to be some action "reloading" the info from the driver...

    You have to wait 5-20 minutes for the ARP tables on all the machines on the local
    LAN to time out their entry for your IP address. OR you need to broadcast an unsolicited or gratuitous ARP to update their ARP tables.

    There are a few ways you can do this:

    - Bring the interface down then up. The TCP/IP stack should broadcast an unsolicited
    ARP when it brings up an interface with an IP address.
    - call ifAddrSet() on the interface. The stack broadcasts an unsolicited ARP when an
    IP address is assigned to an interface.
    - open a raw socket, create and populate your own unsolicited ARP packet, then
    broadcast it.

    James.

    Hi James,

    I have tried first 2 methods which you have mentioned

    After changing the mac through muxioctl still ping is not happening.
    Is their any other way ,for runtime mac change to "propagate" automatically through out the OS...

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)