+
+ return (ENOENT);
+}
+
+/*
+ * On embedded, ether_frameout is practicaly ether_frameout_extended.
+ * On non-embedded, ether_frameout has long been exposed as a public KPI,
+ * and therefore its signature must remain the same (without the pre- and
+ * postpend length parameters.)
+ */
+#if KPI_INTERFACE_EMBEDDED
+int
+ether_frameout(struct ifnet *ifp, struct mbuf **m,
+ const struct sockaddr *ndest, const char *edst,
+ const char *ether_type, u_int32_t *prepend_len, u_int32_t *postpend_len)
+#else /* !KPI_INTERFACE_EMBEDDED */
+int
+ether_frameout(struct ifnet *ifp, struct mbuf **m,
+ const struct sockaddr *ndest, const char *edst,
+ const char *ether_type)
+#endif /* KPI_INTERFACE_EMBEDDED */
+{
+#if KPI_INTERFACE_EMBEDDED
+ return (ether_frameout_extended(ifp, m, ndest, edst, ether_type,
+ prepend_len, postpend_len));
+#else /* !KPI_INTERFACE_EMBEDDED */
+ return (ether_frameout_extended(ifp, m, ndest, edst, ether_type,
+ NULL, NULL));
+#endif /* !KPI_INTERFACE_EMBEDDED */
+}