Status of anonymization framework

I am about to document the following functions:

  preserve_prefix(a: addr, width: count): any
  preserve_subnet(sn: subnet): any
  anonymize_addr(a: addr, cl: IPAddrAnonymizationClass): addr

I tried to play with them a bit but they don't seem to work out of the
box. When I run

    preserve_prefix(1.2.3.4, 8);
    print anonymize_addr(1.2.3.4, ORIG_ADDR);
    print anonymize_addr(1.2.3.4, RESP_ADDR);
    print anonymize_addr(1.2.3.4, OTHER_ADDR);

I get the following output:

    1.2.3.4/8
    1.2.3.4
    1.2.3.4
    1.2.3.4

Am I misusing the functions or have they been lost behind in the process
of getting ready for 2.0?

    Matthias

I am about to document the following functions:

I believe this are for use with -A (anonymize/transform tracefile).

    Vern

I believe this are for use with -A (anonymize/transform tracefile).

In git/master, this option does not exist (anymore).

    Matthias

We removed the rewriting code. But do the bifs depend on that code, or
should they work independently as well ? If they do depend on it, it
we should remove them as well (or fix them).

Robin

I think it makes sense to maintain anonymization primitives like this which we can then reuse in the logging framework for log anonymization when we get to that. At the moment though I don't think they serve much purpose especially if they don't work or they don't work like you would anticipate.

  .Seth

At the moment though I don't think they serve much purpose especially if they don't work or they don't work like you would anticipate.

Should we comment them out in bro.bif or simply tag them with FIXME? I
am asking because I am about to document somehow their brokenness.

    Matthias

Document what they are doing currently and use ".. todo::" to mark
what they should be doing.

Robin