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:
parent
3b9aa3617c
commit
6f3dbe5e1a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=56587
@ -640,17 +640,15 @@ 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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user