Changeset View
Changeset View
Standalone View
Standalone View
head/sys/net/if.c
Show First 20 Lines • Show All 81 Lines • ▼ Show 20 Lines | |||||
#if defined(INET) || defined(INET6) | #if defined(INET) || defined(INET6) | ||||
#include <net/ethernet.h> | #include <net/ethernet.h> | ||||
#include <netinet/in.h> | #include <netinet/in.h> | ||||
#include <netinet/in_var.h> | #include <netinet/in_var.h> | ||||
#include <netinet/ip.h> | #include <netinet/ip.h> | ||||
#include <netinet/ip_carp.h> | #include <netinet/ip_carp.h> | ||||
#ifdef INET | #ifdef INET | ||||
#include <netinet/if_ether.h> | #include <netinet/if_ether.h> | ||||
#include <netinet/netdump/netdump.h> | |||||
#endif /* INET */ | #endif /* INET */ | ||||
#ifdef INET6 | #ifdef INET6 | ||||
#include <netinet6/in6_var.h> | #include <netinet6/in6_var.h> | ||||
#include <netinet6/in6_ifattach.h> | #include <netinet6/in6_ifattach.h> | ||||
#endif /* INET6 */ | #endif /* INET6 */ | ||||
#endif /* INET || INET6 */ | #endif /* INET || INET6 */ | ||||
#include <security/mac/mac_framework.h> | #include <security/mac/mac_framework.h> | ||||
▲ Show 20 Lines • Show All 2,666 Lines • ▼ Show 20 Lines | case SIOCSIFMTU: | ||||
if (ifr->ifr_mtu < IF_MINMTU || ifr->ifr_mtu > IF_MAXMTU) | if (ifr->ifr_mtu < IF_MINMTU || ifr->ifr_mtu > IF_MAXMTU) | ||||
return (EINVAL); | return (EINVAL); | ||||
if (ifp->if_ioctl == NULL) | if (ifp->if_ioctl == NULL) | ||||
return (EOPNOTSUPP); | return (EOPNOTSUPP); | ||||
error = (*ifp->if_ioctl)(ifp, cmd, data); | error = (*ifp->if_ioctl)(ifp, cmd, data); | ||||
if (error == 0) { | if (error == 0) { | ||||
getmicrotime(&ifp->if_lastchange); | getmicrotime(&ifp->if_lastchange); | ||||
rt_ifmsg(ifp); | rt_ifmsg(ifp); | ||||
#ifdef INET | |||||
NETDUMP_REINIT(ifp); | |||||
#endif | |||||
} | } | ||||
/* | /* | ||||
* If the link MTU changed, do network layer specific procedure. | * If the link MTU changed, do network layer specific procedure. | ||||
*/ | */ | ||||
if (ifp->if_mtu != oldmtu) { | if (ifp->if_mtu != oldmtu) { | ||||
#ifdef INET6 | #ifdef INET6 | ||||
nd6_setmtu(ifp); | nd6_setmtu(ifp); | ||||
#endif | #endif | ||||
▲ Show 20 Lines • Show All 1,698 Lines • Show Last 20 Lines |