* Now you can specify the network via MAC address as well using the new

BNetworkAddress link address parser.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39780 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2010-12-09 00:07:26 +00:00
parent 8faecc1d5e
commit c9761e828d
+6 -1
View File
@@ -74,7 +74,12 @@ main(int argc, char** argv)
if (argc == 4) {
// list the named entry
wireless_network network;
status_t status = device.GetNetwork(argv[3], network);
BNetworkAddress link;
status_t status = link.SetTo(AF_LINK, argv[3]);
if (status == B_OK)
status = device.GetNetwork(link, network);
else
status = device.GetNetwork(argv[3], network);
if (status != B_OK) {
fprintf(stderr, "getting network failed: %s\n",
strerror(status));