summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@FreeBSD.org>2000-01-27 17:02:52 +0000
committerRuslan Ermilov <ru@FreeBSD.org>2000-01-27 17:02:52 +0000
commitd55c9bafacba12e60017c824910c34729db9f031 (patch)
tree203dc00d8a056ee5829fd7bfff304ed9b90133f6
parent3e07b69c64b3383fa1d46d0294baf86afcfbb31a (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)