cleanpcap / inode.h /
ab17773 2 weeks ago
1 contributor
24 lines | 0.488kb
/* SPDX-License-Identifier: GPL-2.0-or-later */

#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