zcip: allow our own class B range to be used for ZeroConf
authorMichel Stam <m.stam@fugro.nl>
Thu, 30 Oct 2014 12:43:09 +0000 (13:43 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Thu, 30 Oct 2014 12:43:09 +0000 (13:43 +0100)
commitfdd957bdc9981cc2c1efb4452f55bb44a88cbfe0
tree682a01c5e1b2599d5087b56ccec6a062ab69b3d3
parent9f41271f3ce82e0f7196c2442614ef4e9d360928
zcip: allow our own class B range to be used for ZeroConf

169.254 may already be used by a local network. This patch allows
specifying your own IP range.

Our particular use case is a mesh network, in which the nodes partaking
were using an IP range specifically assigned for the meshing purpose.
As the LAN side of the mesh node could use 169.254, this default range
was not an option.

function                                             old     new   delta
zcip_main                                           1342    1426     +84
pick_nip                                               -      40     +40
packed_usage                                       29974   29969      -5
pick                                                  34       -     -34
------------------------------------------------------------------------------
(add/remove: 1/1 grow/shrink: 1/1 up/down: 124/-39)            Total: 85 bytes

Signed-off-by: Michel Stam <m.stam@fugro.nl>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
networking/zcip.c