2013-09-26 17:14:40 +02:00

22 lines
616 B
Plaintext

$NetBSD: patch-at,v 1.4 2004/11/19 12:35:22 sketch Exp $
--- src/NetConnection.h.orig 2004-11-08 14:44:19.318981000 +0000
+++ src/NetConnection.h 2004-11-08 14:44:42.403907000 +0000
@@ -68,6 +68,8 @@
void ready_for_input(bool);
int get_fd() const { return fd; }
+ enum { MAXMSGSIZE = PATH_MAX + 40 };
+
protected:
virtual bool input_msg(const char *data, unsigned nbytes) = 0;
@@ -75,7 +77,6 @@
private:
- enum { MAXMSGSIZE = PATH_MAX + 40 };
typedef u_int32_t Length;
typedef struct msgList_s {
char msg[MAXMSGSIZE+5]; // + 4 for 32-bit length, + 1 for overflow