diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-05-26 00:07:28 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-05-26 00:07:28 +0100 |
commit | 994fe442814c4d169bb0f1ee9745604928006b39 (patch) | |
tree | 630f10f7414f44018095dd9d3cf9df55852a9d41 /net-analyzer/tcpstat/files | |
parent | f8999218b5a6eafa151e7367030cbfdb69e045ed (diff) |
gentoo auto-resync : 26:05:2024 - 00:07:27
Diffstat (limited to 'net-analyzer/tcpstat/files')
5 files changed, 0 insertions, 201 deletions
diff --git a/net-analyzer/tcpstat/files/tcpstat-1.5_p8-_DEFAULT_SOURCE.patch b/net-analyzer/tcpstat/files/tcpstat-1.5_p8-_DEFAULT_SOURCE.patch deleted file mode 100644 index 3ea38d7bac02..000000000000 --- a/net-analyzer/tcpstat/files/tcpstat-1.5_p8-_DEFAULT_SOURCE.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- a/configure.in -+++ b/configure.in -@@ -68,7 +68,7 @@ - case $my_build_os in - aix*) AC_DEFINE(AIX_STRANGENESS, 1, [ defined on AIX systems. ]) ;; - osf1*) AC_DEFINE(TRU64_STRANGENESS, 1, [ defined on OSF systems. ]) ;; -- linux*) AC_DEFINE(_BSD_SOURCE, 1, [ defined usually on linux systems ] ) ;; -+ linux*) AC_DEFINE(_DEFAULT_SOURCE, 1, [ defined usually on linux systems ] ) ;; - gnu/kfreebsd*) AC_DEFINE(_BSD_SOURCE, 1, [ defined usually on debian kfreebsd systems ] ) ;; - bsd/os*) ;; - freebsd*) ;; diff --git a/net-analyzer/tcpstat/files/tcpstat-1.5_p8-ipv6.patch b/net-analyzer/tcpstat/files/tcpstat-1.5_p8-ipv6.patch deleted file mode 100644 index f26268f7a93f..000000000000 --- a/net-analyzer/tcpstat/files/tcpstat-1.5_p8-ipv6.patch +++ /dev/null @@ -1,30 +0,0 @@ ---- a/configure.in -+++ b/configure.in -@@ -84,15 +84,26 @@ - dnl ####################### - dnl Checks for header files - dnl ####################### - AC_HEADER_STDC - AC_HEADER_SYS_WAIT --AC_CHECK_HEADERS(sys/time.h sys/stat.h unistd.h strings.h fcntl.h netinet/ip6.h) -+AC_CHECK_HEADERS(sys/time.h sys/stat.h unistd.h strings.h fcntl.h) - - dnl BSD/OS Seems to not have a good ethernet header, so we gotta wing it - AC_CHECK_HEADERS(net/if.h net/ethernet.h netinet/if_ether.h net/ppp_defs.h) - -+AC_ARG_ENABLE( ipv6, [ AC_HELP_STRING([--enable-ipv6], [s use IPv6?]) ], ip6=$enableval ) -+if test "$ip6" = "yes" -+then -+ AC_CHECK_HEADER(netinet/ip6.h, , [AC_MSG_ERROR([I couldn't find netinet/ip6.h though you asked for ipv6 support.])] ) -+elif test "$ip6" != "no" -+then -+ AC_CHECK_HEADER(netinet/ip6.h) -+ -+fi -+ -+ - dnl ############################################################# - dnl Checks for typedefs, structures, and compiler characteristics - dnl ############################################################# - AC_C_CONST - AC_TYPE_SIZE_T diff --git a/net-analyzer/tcpstat/files/tcpstat-1.5_p8-libpcap.patch b/net-analyzer/tcpstat/files/tcpstat-1.5_p8-libpcap.patch deleted file mode 100644 index 54554890416a..000000000000 --- a/net-analyzer/tcpstat/files/tcpstat-1.5_p8-libpcap.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- a/configure.in -+++ b/configure.in -@@ -47,7 +47,7 @@ - fi - done - else -- LDFLAGS=" -L${with_pcap_lib} "${LDFLAGS} -+ LDFLAGS="${with_pcap_lib} "${LDFLAGS} - fi - - AC_ARG_ENABLE(fdesc, diff --git a/net-analyzer/tcpstat/files/tcpstat-1.5_p8-off-by-one.patch b/net-analyzer/tcpstat/files/tcpstat-1.5_p8-off-by-one.patch deleted file mode 100644 index 4029ddb7d407..000000000000 --- a/net-analyzer/tcpstat/files/tcpstat-1.5_p8-off-by-one.patch +++ /dev/null @@ -1,50 +0,0 @@ ---- a/src/catpcap.c -+++ b/src/catpcap.c -@@ -156,10 +156,10 @@ - return Usage(1, argv[0]); - break; - case 'f': -- strncpy(filterexpr, optarg, BUF_SIZ); -+ strncpy(filterexpr, optarg, BUF_SIZ - 1); - break; - case 'r': -- strncpy(filename, optarg, BUF_SIZ); -+ strncpy(filename, optarg, BUF_SIZ - 1); - break; - default: - return Usage(1, argv[0]); ---- a/src/dump.c -+++ b/src/dump.c -@@ -109,10 +109,10 @@ - get_tcp_flags |= GET_TCPD_COUNT_LINKSIZE; - break; - case 'f': -- strncpy(filterexpr, optarg, BUF_SIZ); -+ strncpy(filterexpr, optarg, BUF_SIZ - 1); - break; - case 'r': -- strncpy(filename, optarg, BUF_SIZ); -+ strncpy(filename, optarg, BUF_SIZ - 1); - break; - case 's': - what_to_show |= parse_show_types(optarg); ---- a/src/tcpprof.c -+++ b/src/tcpprof.c -@@ -126,14 +126,14 @@ - src_dest_split = 1; - break; - case 'f': -- strncpy(filterexpr, optarg, BUF_SIZ); -+ strncpy(filterexpr, optarg, BUF_SIZ - 1); - break; - case 'i': -- strncpy(filename, optarg, BUF_SIZ); -+ strncpy(filename, optarg, BUF_SIZ - 1); - flags |= GET_TCPD_DO_LIVE; - break; - case 'r': -- strncpy(filename, optarg, BUF_SIZ); -+ strncpy(filename, optarg, BUF_SIZ - 1); - flags &= ~GET_TCPD_DO_LIVE; - break; - case 'n': diff --git a/net-analyzer/tcpstat/files/tcpstat-1.5_p8-unused.patch b/net-analyzer/tcpstat/files/tcpstat-1.5_p8-unused.patch deleted file mode 100644 index c255f52dbe85..000000000000 --- a/net-analyzer/tcpstat/files/tcpstat-1.5_p8-unused.patch +++ /dev/null @@ -1,99 +0,0 @@ ---- a/lib/process.c -+++ b/lib/process.c -@@ -230,12 +230,12 @@ - * calls a user function pointing to the data - * - * XXX: filter is not used. capture_seconds also isn't, but snoop is - * always read from a file. - */ --int get_snoop_data(char *fname, char *filter, int flags, -- Double capture_seconds, void (*hook)(packet_data *, void **), -+int get_snoop_data(char *fname, char *filter __attribute__((unused)), int flags, -+ Double capture_seconds __attribute__((unused)), void (*hook)(packet_data *, void **), - void **args) { - - u_char *packet; - int fd, len, blen, ret = 0; - struct snoop_file_header fh; ---- a/lib/tcpseq.c -+++ b/lib/tcpseq.c -@@ -54,11 +54,10 @@ - u_char flags; - struct tcpseq_ha test_ha; - struct tcphdr *tp = NULL; - struct ip *ip; - #ifdef INET6 -- int is_ip6 = 0; - struct ip6_hdr *ip6; - - ip6 = (struct ip6_hdr *) &pd->data.ip6.hdr; - if (is_ip6_packet(pd)) - tp= &(pd->data.ip6.body.tcphdr); ---- a/src/catpcap.c -+++ b/src/catpcap.c -@@ -52,13 +52,12 @@ - return '.'; - } - --void proc_pcap(u_char *user, const struct pcap_pkthdr *h, const u_char *p) { -+void proc_pcap(u_char *user __attribute__((unused)), const struct pcap_pkthdr *h, const u_char *p) { - u_int length = h->caplen, i, j, k, step; -- u_char *r, *s; -+ u_char *r; - char c; - - r = (u_char *)p; -- s = (u_char *)p; - step = 22; - printf("%u: %lu.%.6lu, caplen %u, len %u\n", - p_number++, -@@ -92,7 +91,7 @@ - * process_file() takes the output of tcpdump, saves packets, and displays - * statistics - */ --void process_file(char *fname, u_int unused) { -+void process_file(char *fname, u_int unused __attribute__((unused))) { - int run = 1, i; - pcap_t *pd; - char ebuf[PCAP_ERRBUF_SIZE]; ---- a/src/dump.c -+++ b/src/dump.c -@@ -37,21 +37,21 @@ - char filterexpr[BUF_SIZ] = ""; - int get_tcp_flags = 0; - int what_to_show = 0; - int packet_number = 0; - --void my_hook(packet_data *pd, void **args) { -+void my_hook(packet_data *pd) { - printf("PACKET NUMBER: %d\n", ++packet_number); - print_packet(pd, what_to_show); - printf("-------------------\n"); - } - - /* - * process_file() takes the output of tcpdump, saves packets, and displays - * statistics - */ --void process_file(char *fname, u_int unused) { -+void process_file(char *fname, u_int unused __attribute__((unused))) { - get_dump_data(fname, filterexpr, get_tcp_flags, - -1.0, my_hook, NULL); - } - - int parse_show_types(char *in) { ---- a/src/tcpstat.c -+++ b/src/tcpstat.c -@@ -421,11 +421,11 @@ - } - - /* - * process_file() gets the data, and then displays the statistics - */ --void process_file(char *fname, u_int unused) { -+void process_file(char *fname, u_int unused __attribute__((unused))) { - void *argv[2]; - statistics stats; - Double x; - - signal(SIGUSR1, catch_signal); |