Page MenuHomeFreeBSD

D50264.diff
No OneTemporary

D50264.diff

diff --git a/sys/dev/wtap/if_wtap.c b/sys/dev/wtap/if_wtap.c
--- a/sys/dev/wtap/if_wtap.c
+++ b/sys/dev/wtap/if_wtap.c
@@ -33,7 +33,7 @@
*/
#include "if_wtapvar.h"
#include <sys/uio.h> /* uio struct */
-#include <sys/jail.h>
+#include <net/if.h>
#include <net/if_var.h>
#include <net/vnet.h>
@@ -395,7 +395,7 @@
ieee80211_vap_attach(vap, ieee80211_media_change,
ieee80211_media_status, mac);
avp->av_dev = make_dev(&wtap_cdevsw, 0, UID_ROOT, GID_WHEEL, 0600,
- "%s", (const char *)vap->iv_ifp->if_xname);
+ "%s", if_name(vap->iv_ifp));
avp->av_dev->si_drv1 = sc;
callout_init(&avp->av_swba, 0);

File Metadata

Mime Type
text/plain
Expires
Sat, Jul 25, 3:50 AM (3 h, 24 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35461102
Default Alt Text
D50264.diff (631 B)

Event Timeline