cleanpcap / inode.h /
23ada98 7 years ago
1 contributor
22 lines | 0.439kb
#ifndef _INODE_H
#define _INODE_H
#include <stdint.h>
#include <sys/types.h>
#include <pcap.h>

#define MAX_CMD_LINE 1024
#define HASHKEYSIZE 128

typedef struct _inode_t {
  uint32_t inode;
  pid_t pid;
  char cmdline[MAX_CMD_LINE];
  char hashkey[HASHKEYSIZE];
  char hashkey2[HASHKEYSIZE];
  FILE *mydumper;
} inode_t;

void inode_debug_print(inode_t *inode);
void inode_copy(inode_t *inode_dst, inode_t *inode_src);

#endif //_INODE_H