[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: React on change of arp table entry



George Shuklin <george.shuklin@gmail.com> wrote:

> It there any way to react on changes in arp table (except for constant
> polling)? I want to reset all TCP connection with directly connected
> IP which have changed MAC address. I google a lot but found none.

> Why this is needed: we have corosync/pacemaker HA cluster which moves
> IP address between servers. There are many 'sleeping' clients which
> waits for data on open connections, and those connections are most of
> the time idle. If IP has been moved, I want all clients to get RST
> ASAP upon receiving grace ARP from the new host.

> Do you know any way to react on mac change?

Those events should be visible via netlink, libnl. Check this discution
on linuxquestions.org:
https://www.linuxquestions.org/questions/linux-software-2/need-program-to-get-arp-table-changes-via-netlink-socket-4175610380/

S°

-- 
Sigmentation fault. Core dumped.


Reply to: