summaryrefslogtreecommitdiff
path: root/ripd/ripd.c
diff options
context:
space:
mode:
authorajs <ajs>2004-12-15 14:55:51 +0000
committerajs <ajs>2004-12-15 14:55:51 +0000
commit766a0ca3dcb824fc9283be89bb57e47132b26826 (patch)
treef8600196fb61cbbcbc090dad480830ce0ffe24fb /ripd/ripd.c
parent3aa8d5f9893c182eb27f0f6ab354a77edbf1b9f0 (diff)
2004-12-15 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
* ripd.c: (rip_read) Improve 2 error messages to show the source of the packet when the lookup fails.
Diffstat (limited to 'ripd/ripd.c')
-rw-r--r--ripd/ripd.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/ripd/ripd.c b/ripd/ripd.c
index 01e669f4..04070658 100644
--- a/ripd/ripd.c
+++ b/ripd/ripd.c
@@ -1725,7 +1725,8 @@ rip_read (struct thread *t)
/* If this packet come from unknown interface, ignore it. */
if (ifp == NULL)
{
- zlog_info ("rip_read: packet comes from unknown interface");
+ zlog_info ("rip_read: cannot find interface for packet from %s port %d",
+ inet_ntoa(from.sin_addr), ntohs (from.sin_port));
return -1;
}
@@ -1733,7 +1734,9 @@ rip_read (struct thread *t)
if (ifc == NULL)
{
- zlog_info ("rip_read: packet comes from unknown network");
+ zlog_info ("rip_read: cannot find connected address for packet from %s "
+ "port %d on interface %s",
+ inet_ntoa(from.sin_addr), ntohs (from.sin_port), ifp->name);
return -1;
}