Re: arp: initialise global list

2023-03-02 Thread Klemens Nanni
On Thu, Mar 02, 2023 at 01:53:34PM +0300, Vitaliy Makkoveev wrote: > I like to use LIST_HEAD_INITIALIZER(9) for consistency with other global > list initializations in netinet/. ok mvs@ with this. Needs a little spacing and commment wording wrangling to stay < 80 chars. OK? Index: netinet/if_et

Re: arp: initialise global list

2023-03-02 Thread Vitaliy Makkoveev
On Thu, Mar 02, 2023 at 09:36:52AM +, Klemens Nanni wrote: > Used but not initialised: > > $ grep arp_list if_ether.c > LIST_ENTRY(llinfo_arp) la_list; /* [mN] global arp_list > */ > LIST_HEAD(, llinfo_arp) arp_list; /* [mN] list of all llinfo_arp > structur

arp: initialise global list

2023-03-02 Thread Klemens Nanni
Used but not initialised: $ grep arp_list if_ether.c LIST_ENTRY(llinfo_arp) la_list; /* [mN] global arp_list */ LIST_HEAD(, llinfo_arp) arp_list; /* [mN] list of all llinfo_arp structures */ /* Net lock is exclusive, no arp mutex needed for