Lines Matching refs:interface

76 	printf("usage: %s [<interface> [<address family>] [<address> [<mask>] | "
78 " %s --delete <interface> [...]\n"
79 " %s <interface> [scan|join|leave] [<network> "
461 list_interface_addresses(BNetworkInterface& interface, uint32 flags)
463 int32 count = interface.CountAddresses();
466 if (interface.GetAddressAt(i, address) != B_OK)
502 // get link level interface for this interface
504 BNetworkInterface interface(name);
505 if (!interface.Exists()) {
511 status_t status = interface.GetHardwareAddress(linkAddress);
534 int media = interface.Media();
567 uint32 flags = interface.Flags();
569 list_interface_addresses(interface, flags);
573 printf("\tMTU: %" B_PRId32 ", Metric: %" B_PRId32, interface.MTU(),
574 interface.Metric());
611 if (interface.GetStats(stats) == B_OK) {
639 BNetworkInterface interface;
642 while (roster.GetNextInterface(&cookie, interface) == B_OK) {
643 list_interface(interface.Name());
649 addresses from the interface named \a name.
650 If there are no arguments, it will remove the complete interface with all
656 BNetworkInterface interface(name);
670 status_t status = interface.RemoveAddress(address);
672 fprintf(stderr, "%s: Could not delete address %s from interface %s:"
678 // Delete interface
681 status_t status = roster.RemoveInterface(interface);
683 fprintf(stderr, "%s: Could not delete interface %s: %s\n",
722 BNetworkInterface interface(name);
723 if (!interface.Exists()) {
724 // the interface does not exist yet, we have to add it first
727 status_t status = roster.AddInterface(interface);
729 fprintf(stderr, "%s: Could not add interface: %s\n", kProgramName,
811 media = interface.Media();
876 status_t status = interface.SetAddress(interfaceAddress);
884 currentFlags = interface.Flags();
894 = interface.SetFlags((currentFlags & ~removeFlags) | addFlags);
904 status_t status = interface.SetMTU(mtu);
912 status_t status = interface.SetMetric(metric);
920 status_t status = interface.SetMedia(media);
930 status_t status = interface.AutoConfigure(family);
965 // Delete interface (addresses)
991 // Add or configure an interface