/* parser.h -- This file contains prototypes for the procedures in parser.c
 *
 * Created by:	Derek Atkins <warlord@MIT.EDU>
 *
 * $Source: /afs/net.mit.edu/user/warlord/Thesis/src/lib/RCS/parser.h,v $
 * $Author: warlord $
 *
 */

#include <warlord-copyright.h>

#ifndef _PARSER_H
#define _PARSER_H

#include <sys/types.h>
#include <charon_prot.h>

extern void int2octet(int num, u_char *octet);
extern void octet2int(u_char *octet, int *num);
extern int info2octet(charon_t *charon, u_char **data, u_int *datalen);
extern int octet2info(u_char *data, charon_t *charon);
extern int octet2ktext(u_char *octet, int datalen, KTEXT pkt);

#endif
