--- zzzz-none-000/linux-5.4.213/include/net/neighbour.h 2022-09-15 10:04:56.000000000 +0000 +++ alder-5690pro-762/linux-5.4.213/include/net/neighbour.h 2024-08-14 09:02:08.000000000 +0000 @@ -241,6 +241,11 @@ return p->tbl->family; } +struct neigh_mac_update { + unsigned char old_mac[ALIGN(MAX_ADDR_LEN, sizeof(unsigned long))]; + unsigned char update_mac[ALIGN(MAX_ADDR_LEN, sizeof(unsigned long))]; +}; + #define NEIGH_PRIV_ALIGN sizeof(long long) #define NEIGH_ENTRY_SIZE(size) ALIGN((size), NEIGH_PRIV_ALIGN) @@ -376,6 +381,9 @@ void pneigh_for_each(struct neigh_table *tbl, void (*cb)(struct pneigh_entry *)); +extern void neigh_mac_update_register_notify(struct notifier_block *nb); +extern void neigh_mac_update_unregister_notify(struct notifier_block *nb); + struct neigh_seq_state { struct seq_net_private p; struct neigh_table *tbl;