File tree 3 files changed +5
-2
lines changed
3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -31,8 +31,11 @@ __FBSDID("$FreeBSD$");
31
31
#include <sys/systm.h>
32
32
#include <sys/bus.h>
33
33
#include <sys/kernel.h>
34
+ #include <sys/socket.h>
34
35
#include <sys/module.h>
35
36
37
+ #include <net/if.h>
38
+
36
39
#include <machine/bus.h>
37
40
38
41
#include <dev/dwc/if_dwc.h>
Original file line number Diff line number Diff line change @@ -475,7 +475,7 @@ dwc_setup_rxfilter(struct dwc_softc *sc)
475
475
/*
476
476
* Set the primary address.
477
477
*/
478
- eaddr = IF_LLADDR (ifp );
478
+ eaddr = if_getlladdr (ifp );
479
479
lo = eaddr [0 ] | (eaddr [1 ] << 8 ) | (eaddr [2 ] << 16 ) |
480
480
(eaddr [3 ] << 24 );
481
481
hi = eaddr [4 ] | (eaddr [5 ] << 8 );
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ struct dwc_softc {
65
65
int mii_clk ;
66
66
device_t miibus ;
67
67
struct mii_data * mii_softc ;
68
- struct ifnet * ifp ;
68
+ if_t ifp ;
69
69
int if_flags ;
70
70
struct mtx mtx ;
71
71
void * intr_cookie ;
You can’t perform that action at this time.
0 commit comments