Changes of Revision 28
[-] | Changed | nrpe.spec |
x 1
2 Patch3: nrpe-0003-Include-etc-npre.d-config-directory.patch 3 Patch4: nrpe-default-config.patch 4 Patch13: nrpe-0013-service-rhel6.patch 5 +Patch20: nrpe-3.2.1_packetbuffer.patch 6 7 # For reconfiguration 8 BuildRequires: autoconf, automake, libtool 9
10 %patch3 -p1 -b .include_etc_npre_d 11 %patch4 -p0 -b .default-config-nrpe 12 %patch13 -p1 -b .fix_service_rhel6 13 - 14 +%patch20 -p0 -b .packetbuffer 15 16 %build 17 CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" LDFLAGS="%{?__global_ldflags}" \ 18 |
||
[+] | Added | nrpe-3.2.1_packetbuffer.patch ^ |
@@ -0,0 +1,20 @@ +--- include/common.h.in.orig 2020-02-05 09:59:52.145290051 +0100 ++++ include/common.h.in 2020-02-05 10:04:25.545290135 +0100 +@@ -55,7 +55,7 @@ + #define DEFAULT_SOCKET_TIMEOUT 10 /* timeout after 10 seconds */ + #define DEFAULT_CONNECTION_TIMEOUT 300 /* timeout if daemon is waiting for connection more than this time */ + +-#define MAX_INPUT_BUFFER 2048 /* max size of most buffers we use */ ++#define MAX_INPUT_BUFFER 8192 /* max size of most buffers we use */ + #define MAX_FILENAME_LENGTH 256 + #define MAX_HOST_ADDRESS_LENGTH 256 /* max size of a host address */ + #define MAX_COMMAND_ARGUMENTS 16 +@@ -70,7 +70,7 @@ + #define NRPE_PACKET_VERSION_2 2 + #define NRPE_PACKET_VERSION_1 1 /* older packet version identifiers (no longer supported) */ + +-#define MAX_PACKETBUFFER_LENGTH 1024 /* amount of data to send in one query/response vor version 2 */ ++#define MAX_PACKETBUFFER_LENGTH 8192 /* amount of data to send in one query/response vor version 2 */ + + typedef struct _v2_packet { + int16_t packet_version; |