]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[MINOR] pattern: add the "ipmask()" converting function
authorWilly Tarreau <w@1wt.eu>
Tue, 26 Jan 2010 17:01:41 +0000 (18:01 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 26 Jan 2010 17:05:48 +0000 (18:05 +0100)
commitd31d6eb89a5366a7dcff638c621a9fbaf8c51407
tree8928721f32413dbcf712da84a163d99fcb78f937
parent9e92d327f7b6351d21ca4707ead8dc9aa914b398
[MINOR] pattern: add the "ipmask()" converting function

This converter can be applied on top of an IPv4-type pattern. It
applies a netmask which is suited for IP address storage and matching.
This can be used to make all hosts within a certain mask to share the
same table entries and as such use the same server.

The mask can be passed in dotted form (eg: 255.255.255.0) or in CIDR
form (eg: 24).
doc/configuration.txt
src/pattern.c