summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@FreeBSD.org>2000-01-25 12:24:06 +0000
committerRuslan Ermilov <ru@FreeBSD.org>2000-01-25 12:24:06 +0000
commit6f3dbe5e1ac47817ca424b1e34f44443b2e088ec (patch)
tree0649b6909ca508864e6d75cdc337dd8f615026c6
parent3b9aa3617ceece1c89d02b05534e486fcff4d08d (diff)
Notes
-rw-r--r--sbin/natd/natd.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/sbin/natd/natd.c b/sbin/natd/natd.c
index 3d6c856a8ace..09cd257ed21c 100644
--- a/sbin/natd/natd.c
+++ b/sbin/natd/natd.c
@@ -640,16 +640,14 @@ static void HandleRoutingInfo (int fd)
}
if (verbose)
- printf ("Routing message %X received.\n", ifMsg.ifm_type);
+ printf ("Routing message %#x received.\n", ifMsg.ifm_type);
- if (ifMsg.ifm_type != RTM_NEWADDR)
- return;
-
- if (verbose && ifMsg.ifm_index == ifIndex)
- printf ("Interface address has changed.\n");
-
- if (ifMsg.ifm_index == ifIndex)
+ if ((ifMsg.ifm_type == RTM_NEWADDR || ifMsg.ifm_type == RTM_IFINFO) &&
+ ifMsg.ifm_index == ifIndex) {
+ if (verbose)
+ printf("Interface address/MTU has probably changed.\n");
assignAliasAddr = 1;
+ }
}
static void PrintPacket (struct ip* ip)