Now that kernel is capable of notifying user processes about

the interface MTU change (src/sys/net/if_sl.c,v 1.83), track
interface MTU with -dynamic option as well.

PR:		15494
This commit is contained in:
Ruslan Ermilov 2000-01-25 12:24:06 +00:00
parent 3b9aa3617c
commit 6f3dbe5e1a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=56587

View File

@ -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)