mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
build: merge fnettrace headers into fnettrace_common.h (#7127)
It's redundant, plus `fnettrace_icmp.h` and `fnettrace_sni.h` use the same guard macro.
This commit is contained in:
parent
76c1c8539a
commit
8af07d8a2d
6 changed files with 16 additions and 106 deletions
|
|
@ -17,15 +17,7 @@
|
|||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
#include "fnettrace_dns.h"
|
||||
#include "../include/gcov_wrapper.h"
|
||||
#include <sys/ioctl.h>
|
||||
#include <time.h>
|
||||
#include <linux/filter.h>
|
||||
#include <linux/if_ether.h>
|
||||
#include <sys/prctl.h>
|
||||
#include <signal.h>
|
||||
#define MAX_BUF_SIZE (64 * 1024)
|
||||
#include "../include/fnettrace_common.h"
|
||||
|
||||
static int arg_nolocal = 0;
|
||||
static char last[512] = {'\0'};
|
||||
|
|
|
|||
|
|
@ -1,34 +0,0 @@
|
|||
/*
|
||||
* Copyright (C) 2014-2026 Firejail Authors
|
||||
*
|
||||
* This file is part of firejail project
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along
|
||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
#ifndef FNETTRACE_SNI_H
|
||||
#define FNETTRACE_SNI_H
|
||||
|
||||
#include "../include/common.h"
|
||||
#include <unistd.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/socket.h>
|
||||
#include <netinet/in.h>
|
||||
#include <time.h>
|
||||
#include <stdarg.h>
|
||||
#include <fcntl.h>
|
||||
#include <sys/mman.h>
|
||||
|
||||
#endif
|
||||
|
|
@ -17,15 +17,7 @@
|
|||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
#include "fnettrace_icmp.h"
|
||||
#include "../include/gcov_wrapper.h"
|
||||
#include <sys/ioctl.h>
|
||||
#include <time.h>
|
||||
#include <linux/filter.h>
|
||||
#include <linux/if_ether.h>
|
||||
#include <sys/prctl.h>
|
||||
#include <signal.h>
|
||||
#define MAX_BUF_SIZE (64 * 1024)
|
||||
#include "../include/fnettrace_common.h"
|
||||
|
||||
char *type_description[19] = {
|
||||
"Echo reply",
|
||||
|
|
|
|||
|
|
@ -1,34 +0,0 @@
|
|||
/*
|
||||
* Copyright (C) 2014-2026 Firejail Authors
|
||||
*
|
||||
* This file is part of firejail project
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along
|
||||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
#ifndef FNETTRACE_SNI_H
|
||||
#define FNETTRACE_SNI_H
|
||||
|
||||
#include "../include/common.h"
|
||||
#include <unistd.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/socket.h>
|
||||
#include <netinet/in.h>
|
||||
#include <time.h>
|
||||
#include <stdarg.h>
|
||||
#include <fcntl.h>
|
||||
#include <sys/mman.h>
|
||||
|
||||
#endif
|
||||
|
|
@ -17,15 +17,7 @@
|
|||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
#include "fnettrace_sni.h"
|
||||
#include "../include/gcov_wrapper.h"
|
||||
#include <sys/ioctl.h>
|
||||
#include <time.h>
|
||||
#include <linux/filter.h>
|
||||
#include <linux/if_ether.h>
|
||||
#include <sys/prctl.h>
|
||||
#include <signal.h>
|
||||
#define MAX_BUF_SIZE (64 * 1024)
|
||||
#include "../include/fnettrace_common.h"
|
||||
|
||||
static char last[512] = {'\0'};
|
||||
|
||||
|
|
|
|||
|
|
@ -17,18 +17,20 @@
|
|||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
#ifndef FNETTRACE_DNS_H
|
||||
#define FNETTRACE_DNS_H
|
||||
#ifndef FNETTRACE_COMMON_H
|
||||
#define FNETTRACE_COMMON_H
|
||||
|
||||
#include "../include/common.h"
|
||||
#include <unistd.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/socket.h>
|
||||
#include <netinet/in.h>
|
||||
#include "common.h"
|
||||
#include "gcov_wrapper.h"
|
||||
|
||||
#include <sys/ioctl.h>
|
||||
#include <time.h>
|
||||
#include <stdarg.h>
|
||||
#include <fcntl.h>
|
||||
#include <sys/mman.h>
|
||||
#include <linux/filter.h>
|
||||
#include <linux/if_ether.h>
|
||||
#include <netinet/in.h>
|
||||
#include <sys/prctl.h>
|
||||
#include <signal.h>
|
||||
|
||||
#define MAX_BUF_SIZE (64 * 1024)
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue