aboutsummaryrefslogtreecommitdiff
path: root/sys/compat/linuxkpi/common/include/linux/if_vlan.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/compat/linuxkpi/common/include/linux/if_vlan.h')
-rw-r--r--sys/compat/linuxkpi/common/include/linux/if_vlan.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/sys/compat/linuxkpi/common/include/linux/if_vlan.h b/sys/compat/linuxkpi/common/include/linux/if_vlan.h
index 4d8b8926a032..3d1c61db1882 100644
--- a/sys/compat/linuxkpi/common/include/linux/if_vlan.h
+++ b/sys/compat/linuxkpi/common/include/linux/if_vlan.h
@@ -25,11 +25,9 @@
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- * $FreeBSD$
*/
-#ifndef _LINUX_IF_VLAN_H_
-#define _LINUX_IF_VLAN_H_
+#ifndef _LINUXKPI_LINUX_IF_VLAN_H_
+#define _LINUXKPI_LINUX_IF_VLAN_H_
#include <sys/types.h>
#include <sys/socket.h>
@@ -44,7 +42,7 @@
static inline int
is_vlan_dev(struct ifnet *ifp)
{
- return (ifp->if_type == IFT_L2VLAN);
+ return (if_gettype(ifp) == IFT_L2VLAN);
}
static inline uint16_t
@@ -56,4 +54,4 @@ vlan_dev_vlan_id(struct ifnet *ifp)
return (0);
}
-#endif /* _LINUX_IF_VLAN_H_ */
+#endif /* _LINUXKPI_LINUX_IF_VLAN_H_ */