svn commit: r290403 - head/sys/netinet

Steven Hartland smh at FreeBSD.org
Thu Nov 5 17:23:04 UTC 2015


Author: smh
Date: Thu Nov  5 17:23:02 2015
New Revision: 290403
URL: https://svnweb.freebsd.org/changeset/base/290403

Log:
  Add MTU support to carp interfaces
  
  MFC after:	2 weeks
  Sponsored by:	Multiplay

Modified:
  head/sys/netinet/ip_carp.c

Modified: head/sys/netinet/ip_carp.c
==============================================================================
--- head/sys/netinet/ip_carp.c	Thu Nov  5 17:19:08 2015	(r290402)
+++ head/sys/netinet/ip_carp.c	Thu Nov  5 17:23:02 2015	(r290403)
@@ -1769,6 +1769,13 @@ carp_ioctl(struct ifreq *ifr, u_long cmd
 		}
 		break;
 	    }
+	case SIOCSIFMTU:
+		if (ifr->ifr_mtu > ETHERMTU_JUMBO) {
+			error = EINVAL;
+		} else {
+			ifp->if_mtu = ifr->ifr_mtu;
+		}
+		break;
 	default:
 		error = EINVAL;
 	}


More information about the svn-src-head mailing list