Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F157108849
D19206.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
967 B
Referenced Files
None
Subscribers
None
D19206.diff
View Options
Index: head/stand/common/dev_net.c
===================================================================
--- head/stand/common/dev_net.c
+++ head/stand/common/dev_net.c
@@ -122,13 +122,15 @@
{
struct iodesc *d;
va_list args;
- char *devname; /* Device part of file name (or NULL). */
+ struct devdesc *dev;
+ const char *devname; /* Device part of file name (or NULL). */
int error = 0;
va_start(args, f);
- devname = va_arg(args, char*);
+ dev = va_arg(args, struct devdesc *);
va_end(args);
+ devname = dev->d_dev->dv_name;
/* Before opening another interface, close the previous one first. */
if (netdev_sock >= 0 && strcmp(devname, netdev_name) != 0)
net_cleanup();
@@ -137,7 +139,7 @@
if (netdev_opens == 0) {
/* Find network interface. */
if (netdev_sock < 0) {
- netdev_sock = netif_open(devname);
+ netdev_sock = netif_open(dev);
if (netdev_sock < 0) {
printf("net_open: netif_open() failed\n");
return (ENXIO);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, May 19, 12:25 PM (6 h, 36 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33311853
Default Alt Text
D19206.diff (967 B)
Attached To
Mode
D19206: stand: dev_net: correct net_open's interpretation of params
Attached
Detach File
Event Timeline
Log In to Comment