The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Apache2::Connection::Arp - use arp to get the mac address of remote clients

SYNOPSIS

In your httpd.conf

  PerlLoadModule Apache2::Connection::Arp
  PerlSetVar arp_binary '/usr/sbin/arp'

  PerlPostReadRequestHandler Apache2::Connection::Arp

  <Location />
      SetHandler mod_perl
      PerlResponseHandler My::Handler
  </Location>

Meanwhile in a nearby mod_perl handler...

  $remote_mac = $r->connection->pnotes('remote_mac');

DESCRIPTION

This module grabs the mac address of the remote client and stashes it in the connection pnotes for later retrieval.

SEE ALSO

Apache2::ConnectionUtil

AUTHOR

Fred Moyer, <fred@redhotpenguin.com>

COPYRIGHT AND LICENSE

Copyright (C) 2010 by Fred Moyer

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.