* 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:
@@ -74,7 +74,12 @@ main(int argc, char** argv)
|
|||||||
if (argc == 4) {
|
if (argc == 4) {
|
||||||
// list the named entry
|
// list the named entry
|
||||||
wireless_network network;
|
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) {
|
if (status != B_OK) {
|
||||||
fprintf(stderr, "getting network failed: %s\n",
|
fprintf(stderr, "getting network failed: %s\n",
|
||||||
strerror(status));
|
strerror(status));
|
||||||
|
|||||||
Reference in New Issue
Block a user