Move if_name() from net_osdep.h to if.h. net_osdep.h is now unused and can

be removed - the other BSDs did the same.

Discussed with Kengo (if.h suggested by him).
This commit is contained in:
maxv 2018-05-01 06:50:06 +00:00
parent a7d0cc8839
commit 218f7f4f8d
2 changed files with 3 additions and 4 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: if.h,v 1.260 2018/04/19 21:20:43 christos Exp $ */
/* $NetBSD: if.h,v 1.261 2018/05/01 06:50:06 maxv Exp $ */
/*-
* Copyright (c) 1999, 2000, 2001 The NetBSD Foundation, Inc.
@ -405,6 +405,7 @@ typedef struct ifnet {
#define if_iqdrops if_data.ifi_iqdrops
#define if_noproto if_data.ifi_noproto
#define if_lastchange if_data.ifi_lastchange
#define if_name(ifp) ((ifp)->if_xname)
#define IFF_UP 0x0001 /* interface is up */
#define IFF_BROADCAST 0x0002 /* broadcast address valid */

View File

@ -1,4 +1,4 @@
/* $NetBSD: net_osdep.h,v 1.19 2018/02/08 21:02:05 maxv Exp $ */
/* $NetBSD: net_osdep.h,v 1.20 2018/05/01 06:50:06 maxv Exp $ */
/* $KAME: net_osdep.h,v 1.51 2001/07/06 06:21:43 itojun Exp $ */
/*
@ -301,7 +301,5 @@
#define _NET_NET_OSDEP_H_
#ifdef _KERNEL
#define if_name(ifp) ((ifp)->if_xname)
#endif /*_KERNEL*/
#endif /* !_NET_NET_OSDEP_H_ */