summaryrefslogtreecommitdiff
path: root/ripngd
diff options
context:
space:
mode:
authorpaul <paul>2004-09-17 08:39:08 +0000
committerpaul <paul>2004-09-17 08:39:08 +0000
commit0b3acf4f94241905ff36df5c1d9f9f389e45d191 (patch)
tree48b312ab2de446208d966d234fc37539bed98861 /ripngd
parentbf731011ef7038f5766432fec862301c123d4736 (diff)
2004-09-17 Paul Jakma <paul@dishone.st>
* ripngd/ripngd.c: move setsockopt_so_recvbuf to lib. * lib/sockopt.{c,h}: Add setsockopt_so_recvbuf, for ripd and ripngd. * ripd/ripd.c: set receive buffer to a decent size, some systems have low defaults. Problem noted and fix suggested by Stephan Schweizer in [zebra 20967].
Diffstat (limited to 'ripngd')
-rw-r--r--ripngd/ChangeLog4
-rw-r--r--ripngd/ripngd.c11
2 files changed, 4 insertions, 11 deletions
diff --git a/ripngd/ChangeLog b/ripngd/ChangeLog
index 6b05f3de..64ee7d88 100644
--- a/ripngd/ChangeLog
+++ b/ripngd/ChangeLog
@@ -1,3 +1,7 @@
+2004-09-17 Paul Jakma <paul@dishone.st>
+
+ * ripngd.c: move setsockopt_so_recvbuf to lib.
+
2004-07-23 Hasso Tepper <hasso@estpak.ee>
* ripng_interface.c, ripng_nexthop.c: use ifp->mtu6 instead of
diff --git a/ripngd/ripngd.c b/ripngd/ripngd.c
index b1edd6f2..77e47547 100644
--- a/ripngd/ripngd.c
+++ b/ripngd/ripngd.c
@@ -107,17 +107,6 @@ ripng_info_free (struct ripng_info *rinfo)
XFREE (MTYPE_RIPNG_ROUTE, rinfo);
}
-static int
-setsockopt_so_recvbuf (int sock, int size)
-{
- int ret;
-
- ret = setsockopt (sock, SOL_SOCKET, SO_RCVBUF, (char *) &size, sizeof (int));
- if (ret < 0)
- zlog (NULL, LOG_ERR, "can't setsockopt SO_RCVBUF");
- return ret;
-}
-
/* Create ripng socket. */
int
ripng_make_socket (void)