netlabel: Add a generic way to create ordered linked lists of network addrs
commit61e1068219950c672ce979719ad2be3aadb00d7d
authorPaul Moore <paul.moore@hp.com>
Fri, 10 Oct 2008 14:16:32 +0000 (10 10:16 -0400)
committerPaul Moore <paul.moore@hp.com>
Fri, 10 Oct 2008 14:16:32 +0000 (10 10:16 -0400)
treeda987ee4b5be90f95ca8e0b20bd872ff75d82934
parentb1edeb102397546438ab4624489c6ccd7b410d97
netlabel: Add a generic way to create ordered linked lists of network addrs

Create an ordered IP address linked list mechanism similar to the core
kernel's linked list construct.  The idea behind this list functionality
is to create an extensibile linked list ordered by IP address mask to
ease the matching of network addresses.  The linked list is ordered with
larger address masks at the front of the list and shorter address masks
at the end to facilitate overriding network entries with individual host
or subnet entries.

Signed-off-by: Paul Moore <paul.moore@hp.com>
Reviewed-by: James Morris <jmorris@namei.org>
net/netlabel/Makefile
net/netlabel/netlabel_addrlist.c [new file with mode: 0644]
net/netlabel/netlabel_addrlist.h [new file with mode: 0644]
net/netlabel/netlabel_unlabeled.c