diff options
author | dim <dim@FreeBSD.org> | 2015-01-30 18:34:56 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2015-01-30 18:34:56 +0000 |
commit | 2f964f86f074cf08cf21337faeaa2ce688f8e88a (patch) | |
tree | 5d35a42a19d7965268b546861abddcb0acb27e85 /sys/boot/efi/libefi | |
parent | 6a81e27d5863d222ce25b554541147e5640f6baf (diff) | |
download | FreeBSD-src-2f964f86f074cf08cf21337faeaa2ce688f8e88a.zip FreeBSD-src-2f964f86f074cf08cf21337faeaa2ce688f8e88a.tar.gz |
Merge ^/head r277902 through r277944.
Diffstat (limited to 'sys/boot/efi/libefi')
-rw-r--r-- | sys/boot/efi/libefi/efinet.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/boot/efi/libefi/efinet.c b/sys/boot/efi/libefi/efinet.c index 3f08ed2..f1e6143 100644 --- a/sys/boot/efi/libefi/efinet.c +++ b/sys/boot/efi/libefi/efinet.c @@ -99,8 +99,11 @@ dump_mode(EFI_SIMPLE_NETWORK_MODE *mode) static int efinet_match(struct netif *nif, void *machdep_hint) { + struct devdesc *dev = machdep_hint; - return (1); + if (dev->d_unit - 1 == nif->nif_unit) + return (1); + return(0); } static int |