<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/stand/common/dev_net.c, branch releng/14.2</title>
<subtitle>FreeBSD source tree</subtitle>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/'/>
<entry>
<title>libsa: Remove redundant sys/cdefs.h</title>
<updated>2024-04-16T19:54:26+00:00</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2024-02-22T15:18:02+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=c05fe06acbc6e1ec82d5f610ced1dd9550c68305'/>
<id>c05fe06acbc6e1ec82d5f610ced1dd9550c68305</id>
<content type='text'>
Sponsored by:		Netflix

(cherry picked from commit 3e15b01d6914c927e37d1699645783acf286655c)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Sponsored by:		Netflix

(cherry picked from commit 3e15b01d6914c927e37d1699645783acf286655c)
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove $FreeBSD$: one-line .c pattern</title>
<updated>2023-08-16T17:54:42+00:00</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2023-08-16T17:54:42+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=1d386b48a555f61cb7325543adbbb5c3f3407a66'/>
<id>1d386b48a555f61cb7325543adbbb5c3f3407a66</id>
<content type='text'>
Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
</pre>
</div>
</content>
</entry>
<entry>
<title>stand: Use c99 structure initialization for network device</title>
<updated>2022-07-24T22:53:34+00:00</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2022-07-24T21:51:32+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=c4f4a6c983fdadfc343344152cfc571a00a1e07a'/>
<id>c4f4a6c983fdadfc343344152cfc571a00a1e07a</id>
<content type='text'>
Use c99 structure init for devsw.

Sponsored by:		Netflix
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Use c99 structure init for devsw.

Sponsored by:		Netflix
</pre>
</div>
</content>
</entry>
<entry>
<title>loader: net_open() should not replace f-&gt;f_devdata</title>
<updated>2021-10-19T16:43:56+00:00</updated>
<author>
<name>Toomas Soome</name>
<email>tsoome@FreeBSD.org</email>
</author>
<published>2021-09-24T15:04:31+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=98e805b4a18d6ef4d3c9924166e1217e0430290d'/>
<id>98e805b4a18d6ef4d3c9924166e1217e0430290d</id>
<content type='text'>
net_open() does replace f_devdata with pointer to netdev_sock,
this will cause memory leak when device is closed, but also does
alter the devopen() logic.

We should store &amp;netdev_sock to dev-&gt;d_opendata instead, this
would preserve and follow the devopen() logic.

Fixes network boot on aarch64 (tested by bz).

Reviewed-by:	imp
MFC After:	2 weeks
Differential Revision: https://reviews.freebsd.org/D32227
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
net_open() does replace f_devdata with pointer to netdev_sock,
this will cause memory leak when device is closed, but also does
alter the devopen() logic.

We should store &amp;netdev_sock to dev-&gt;d_opendata instead, this
would preserve and follow the devopen() logic.

Fixes network boot on aarch64 (tested by bz).

Reviewed-by:	imp
MFC After:	2 weeks
Differential Revision: https://reviews.freebsd.org/D32227
</pre>
</div>
</content>
</entry>
<entry>
<title>loader: dev_net.c should use __func__ with printf</title>
<updated>2021-09-24T14:12:19+00:00</updated>
<author>
<name>Toomas Soome</name>
<email>tsoome@FreeBSD.org</email>
</author>
<published>2021-09-24T14:07:20+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=1a25c51e38a7c9f46ec195836233636616741f06'/>
<id>1a25c51e38a7c9f46ec195836233636616741f06</id>
<content type='text'>
We have printf calls with function name hardwired to string,
sometimes wrong name. Use __func__ instead.

MFC after:	1 week
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We have printf calls with function name hardwired to string,
sometimes wrong name. Use __func__ instead.

MFC after:	1 week
</pre>
</div>
</content>
</entry>
<entry>
<title>stand: dev_net: correct net_open's interpretation of params</title>
<updated>2019-02-15T18:28:51+00:00</updated>
<author>
<name>Kyle Evans</name>
<email>kevans@FreeBSD.org</email>
</author>
<published>2019-02-15T18:28:51+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=e49f2c66d1289fccf4a99fa20acad4125fba8ce9'/>
<id>e49f2c66d1289fccf4a99fa20acad4125fba8ce9</id>
<content type='text'>
net_open previously casted the first vararg to a char * and this was
half-OK: at first, it is passed to netif_open, which would cast it back to
the struct devdesc * that it really is and use it properly. It is then
strdup()d and used as the netdev_name, which is objectively wrong.

Correct it so that the first vararg is properly casted to a struct devdesc *
and the netdev_name gets set properly to make it more clear at a glance that
it's not doing something horribly wrong.

Reported by:	mmel
Reviewed by:	imp, mmel, tsoome
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D19206
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
net_open previously casted the first vararg to a char * and this was
half-OK: at first, it is passed to netif_open, which would cast it back to
the struct devdesc * that it really is and use it properly. It is then
strdup()d and used as the netdev_name, which is objectively wrong.

Correct it so that the first vararg is properly casted to a struct devdesc *
and the netdev_name gets set properly to make it more clear at a glance that
it's not doing something horribly wrong.

Reported by:	mmel
Reviewed by:	imp, mmel, tsoome
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D19206
</pre>
</div>
</content>
</entry>
<entry>
<title>Revert r333365</title>
<updated>2018-05-10T20:27:12+00:00</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2018-05-10T20:27:12+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=09001b5c78f5049fe9adebb089b28b1323c19443'/>
<id>09001b5c78f5049fe9adebb089b28b1323c19443</id>
<content type='text'>
Even though we don't use it, it appears something else requires it to
be != 0 to work. This breaks tftp boot in loader.efi, so revert until
that can be sorted out.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Even though we don't use it, it appears something else requires it to
be != 0 to work. This breaks tftp boot in loader.efi, so revert until
that can be sorted out.
</pre>
</div>
</content>
</entry>
<entry>
<title>We don't use f_devdata, so don't set it. Should that need to change</title>
<updated>2018-05-08T16:16:56+00:00</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2018-05-08T16:16:56+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=a1947307e7e5cc9af6db4a099df307fa7b957352'/>
<id>a1947307e7e5cc9af6db4a099df307fa7b957352</id>
<content type='text'>
later, we can. This leaves ZFS as the only irregular f_devdata
user in the tree.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
later, we can. This leaves ZFS as the only irregular f_devdata
user in the tree.
</pre>
</div>
</content>
</entry>
<entry>
<title>net_parse_rootpath() has no parameters</title>
<updated>2017-11-22T10:04:09+00:00</updated>
<author>
<name>Toomas Soome</name>
<email>tsoome@FreeBSD.org</email>
</author>
<published>2017-11-22T10:04:09+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=a9abb85906d9e20bfde5c9475d4b4f7d77bbcad6'/>
<id>a9abb85906d9e20bfde5c9475d4b4f7d77bbcad6</id>
<content type='text'>
Add void for parameter list.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add void for parameter list.
</pre>
</div>
</content>
</entry>
<entry>
<title>Move sys/boot to stand. Fix all references to new location</title>
<updated>2017-11-14T23:02:19+00:00</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2017-11-14T23:02:19+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=ca987d4641cdcd7f27e153db17c5bf064934faf5'/>
<id>ca987d4641cdcd7f27e153db17c5bf064934faf5</id>
<content type='text'>
Sponsored by:	Netflix
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Sponsored by:	Netflix
</pre>
</div>
</content>
</entry>
</feed>
