source: tools/traceanon/ipenc.h @ 76eeca0

Last change on this file since 76eeca0 was 49f147b, checked in by Perry Lorier <perry@…>, 17 years ago

Add traceanon to cvs (based heavily on the munge code)

  • Property mode set to 100644
File size: 349 bytes
1#ifndef IPENC_H
2#define IPENC_H
3#include <inttypes.h>
4/** The encryption algorithm used
5 */
6enum enc_type_t {
7        ENC_NONE,                       /**< No encryption */
8        ENC_PREFIX_SUBSTITUTION,        /**< Substitute a prefix */
9        ENC_CRYPTOPAN                   /**< Prefix preserving encryption */
10        };
11void enc_init(enum enc_type_t type, char *key);
12uint32_t enc_ip(uint32_t orig_addr);
Note: See TracBrowser for help on using the repository browser.