Skip to content

Implement LPC trie for glines#78

Open
hiddn wants to merge 9 commits intoUndernetIRC:mainfrom
hiddn:hid/cidr_lookups
Open

Implement LPC trie for glines#78
hiddn wants to merge 9 commits intoUndernetIRC:mainfrom
hiddn:hid/cidr_lookups

Conversation

@hiddn
Copy link
Copy Markdown
Member

@hiddn hiddn commented Mar 29, 2026

hiddn added 9 commits March 29, 2026 12:12
- Restore gliter() to original 3-parameter form (list, gl, next).
  The tree/node params were unnecessary: the CIDR node cleanup code
  was ineffective since cidr_rem_node() refuses to remove nodes with
  data==NULL (treats them as virtual nodes).

- Simplify gliterIpMask(): skip iteration if tree is NULL instead of
  allocating an empty tree on every lookup.

- Simplify gliterExactIpMask(): compact NULL-safe form.

- Remove dead code: unused cidr variable in gline_find().

- Fix comment style: use /* */ instead of // for consistency.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant