NAME

Complete::MAC - Completion routines related to MAC addresses

VERSION

This document describes version 0.002 of Complete::MAC (from Perl distribution Complete-MAC), released on 2017-07-03.

FUNCTIONS

complete_known_mac

Usage:

complete_known_mac(%args) -> array

Complete a known hostname.

Complete from a list of "known" MAC addresses.

Known MAC addresses will be searched from: ifconfig output, ARP cache, /etc/ethers.

This function is not exported by default, but exportable.

Arguments ('*' denotes required arguments):

  • word* => str (default: "")

    Word to complete.

Return value: (array)

ENVIRONMENT

COMPLETE_MAC_TRACE => bool

If set to true, will display more log statements for debugging.

HOMEPAGE

Please visit the project's homepage at https://metacpan.org/release/Complete-MAC.

SOURCE

Source repository is at https://github.com/perlancar/perl-Complete-MAC.

BUGS

Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=Complete-MAC

When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.

SEE ALSO

Complete

Other Complete::* modules.

AUTHOR

perlancar <perlancar@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2017, 2016 by perlancar@cpan.org.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.