Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Oct 2023 14:06:40 +0000
From:      bugzilla-noreply@freebsd.org
To:        net@FreeBSD.org
Subject:   [Bug 274092] if_smsc.c needs to use ether_gen_addr instead of read_random for more stable MAC address
Message-ID:  <bug-274092-7501-tC9EOCN5dj@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-274092-7501@https.bugs.freebsd.org/bugzilla/>
References:  <bug-274092-7501@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D274092

Ronald Klop <ronald@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #245239|0                           |1
        is obsolete|                            |
 Attachment #245577|0                           |1
        is obsolete|                            |
             Status|Open                        |In Progress
           Assignee|net@FreeBSD.org             |ronald@FreeBSD.org

--- Comment #25 from Ronald Klop <ronald@FreeBSD.org> ---
Created attachment 245603
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D245603&action=
=3Dedit
git diff using attach_post_sub

(In reply to Patrick M. Hausen from comment #24)
Thanks you for the testing. I think I found what is causing the crash.
ue->ifp is NULL

I made a new patch. Please undo the previous two and apply this one.
git restore sys/dev/usb/net/if_smsc.c
git restore sys/net/if_ethersubr.c
<apply this patch>
<build kernel>
<boot>

Please make a picture again about what happens.

If this works I have a bonus for you. =F0=9F=A4=A9=F0=9F=A4=A9=F0=9F=A4=A9
With the patch applied change line 1657 in if_smsc.c from "#if 0" to "#if 1=
".
<build kernel>
<boot>

This should give you the MAC address supplied by Raspberry Pi.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-274092-7501-tC9EOCN5dj>