aboutsummaryrefslogtreecommitdiff
path: root/sys/net/if_llatbl.h
diff options
context:
space:
mode:
authorKUROSAWA Takahiro <takahiro.kurosawa@gmail.com>2022-05-30 07:38:54 +0000
committerAlexander V. Chernikov <melifaro@FreeBSD.org>2022-05-30 10:53:33 +0000
commit77001f9b6dac3b8f898941287726e5a668bb5897 (patch)
treea8f49208d738613e680321225965466b49a20f0e /sys/net/if_llatbl.h
parent3719dedb91ebdfdfb7aa7d3c21f02176b21f6d29 (diff)
downloadsrc-77001f9b6dac3b8f898941287726e5a668bb5897.tar.gz
src-77001f9b6dac3b8f898941287726e5a668bb5897.zip
lltable: introduce the llt_post_resolved callback
In order to decrease ifdef INET/INET6s in the lltable implementation, introduce the llt_post_resolved callback and implement protocol-dependent code in the protocol-dependent part. Reviewed By: melifaro Differential Revision: https://reviews.freebsd.org/D35322 MFC after: 2 weeks
Diffstat (limited to 'sys/net/if_llatbl.h')
-rw-r--r--sys/net/if_llatbl.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/net/if_llatbl.h b/sys/net/if_llatbl.h
index 059e918d4fea..a290fb2349aa 100644
--- a/sys/net/if_llatbl.h
+++ b/sys/net/if_llatbl.h
@@ -160,6 +160,7 @@ typedef void (llt_free_tbl_t)(struct lltable *);
typedef int (llt_link_entry_t)(struct lltable *, struct llentry *);
typedef int (llt_unlink_entry_t)(struct llentry *);
typedef void (llt_mark_used_t)(struct llentry *);
+typedef void (llt_post_resolved_t)(struct lltable *, struct llentry *);
typedef int (llt_foreach_cb_t)(struct lltable *, struct llentry *, void *);
typedef int (llt_foreach_entry_t)(struct lltable *, llt_foreach_cb_t *, void *);
@@ -188,6 +189,7 @@ struct lltable {
llt_fill_sa_entry_t *llt_fill_sa_entry;
llt_free_tbl_t *llt_free_tbl;
llt_mark_used_t *llt_mark_used;
+ llt_post_resolved_t *llt_post_resolved;
};
MALLOC_DECLARE(M_LLTABLE);