Changeset View
Changeset View
Standalone View
Standalone View
sys/net/if_llatbl.h
Show First 20 Lines • Show All 161 Lines • ▼ Show 20 Lines | |||||
typedef void (llt_mark_used_t)(struct llentry *); | typedef void (llt_mark_used_t)(struct llentry *); | ||||
typedef void (llt_post_resolved_t)(struct lltable *, 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_cb_t)(struct lltable *, struct llentry *, void *); | ||||
typedef int (llt_foreach_entry_t)(struct lltable *, llt_foreach_cb_t *, void *); | typedef int (llt_foreach_entry_t)(struct lltable *, llt_foreach_cb_t *, void *); | ||||
struct lltable { | struct lltable { | ||||
SLIST_ENTRY(lltable) llt_link; | SLIST_ENTRY(lltable) llt_link; | ||||
int llt_af; | sa_family_t llt_af; | ||||
melifaro: Nit: I'd add explicit `uint8_t llt_spare[3]` to indicate the spare field that arises due to… | |||||
takahiro.kurosawa_gmail.comAuthorUnsubmitted Done Inline ActionsI've added the llt_spare member. takahiro.kurosawa_gmail.com: I've added the llt_spare member. | |||||
int llt_hsize; | int llt_hsize; | ||||
int llt_entries; | int llt_entries; | ||||
int llt_maxentries; | int llt_maxentries; | ||||
struct llentries *lle_head; | struct llentries *lle_head; | ||||
struct ifnet *llt_ifp; | struct ifnet *llt_ifp; | ||||
llt_lookup_t *llt_lookup; | llt_lookup_t *llt_lookup; | ||||
llt_alloc_t *llt_alloc_entry; | llt_alloc_t *llt_alloc_entry; | ||||
▲ Show 20 Lines • Show All 120 Lines • Show Last 20 Lines |
Nit: I'd add explicit uint8_t llt_spare[3] to indicate the spare field that arises due to alignment.