aboutsummaryrefslogtreecommitdiff
path: root/sys/net/if_gif.h
diff options
context:
space:
mode:
authorAndrey V. Elsukov <ae@FreeBSD.org>2018-10-21 18:06:15 +0000
committerAndrey V. Elsukov <ae@FreeBSD.org>2018-10-21 18:06:15 +0000
commit009d82ee0fefdc797f55d25a50d3b6ebe61d56e4 (patch)
treeccfeec6723ecabba8eea9e3ee3b77ddfc9a1e97e /sys/net/if_gif.h
parent8251c68d5c8f068fbf8462b8809517d45f8fed86 (diff)
downloadsrc-009d82ee0fefdc797f55d25a50d3b6ebe61d56e4.tar.gz
src-009d82ee0fefdc797f55d25a50d3b6ebe61d56e4.zip
Add handling for appearing/disappearing of ingress addresses to if_gif(4).
* register handler for ingress address appearing/disappearing; * add new srcaddr hash table for fast softc lookup by srcaddr; * when srcaddr disappears, clear IFF_DRV_RUNNING flag from interface, and set it otherwise; * remove the note about ingress address from BUGS section. MFC after: 1 month Sponsored by: Yandex LLC Differential Revision: https://reviews.freebsd.org/D17134
Notes
Notes: svn path=/head/; revision=339551
Diffstat (limited to 'sys/net/if_gif.h')
-rw-r--r--sys/net/if_gif.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/net/if_gif.h b/sys/net/if_gif.h
index 501a4e5d1789..264fe7b3ddd5 100644
--- a/sys/net/if_gif.h
+++ b/sys/net/if_gif.h
@@ -63,6 +63,7 @@ struct gif_softc {
} gif_uhdr;
CK_LIST_ENTRY(gif_softc) chain;
+ CK_LIST_ENTRY(gif_softc) srchash;
};
CK_LIST_HEAD(gif_list, gif_softc);
MALLOC_DECLARE(M_GIF);