# Ruby/Pcap to get at MAC Address

**URL:** <https://www.ruby-forum.com/t/ruby-pcap-to-get-at-mac-address/126976>\
**Category:** Ruby\
**Created:** [January 23, 2008, 10:24pm UTC](https://www.ruby-forum.com/t/ruby-pcap-to-get-at-mac-address/126976 "2008-01-23T22:24:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jackfoster](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/df705f/32.png) [@jackfoster](https://www.ruby-forum.com/u/jackfoster)\
**Post date:** [January 23, 2008, 10:24pm UTC](https://www.ruby-forum.com/t/ruby-pcap-to-get-at-mac-address/126976/1 "2008-01-23T22:24:30Z")

</div>

I’m familiar with the Ruby/Pcap extension library but it seems to only  
support getting at the IP/TCP/UDP header information of the packet.

How do I get the MAC Address? Am I missing something?

Library is here:  
[http://www.goto.info.waseda.ac.jp/~fukusima/ruby/pcap-e.html](http://www.goto.info.waseda.ac.jp/~fukusima/ruby/pcap-e.html)

---

<div class="post-metadata">

**Author:** ![jackfoster](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/df705f/32.png) [@jackfoster](https://www.ruby-forum.com/u/jackfoster)\
**Post date:** [February 10, 2008, 6:32pm UTC](https://www.ruby-forum.com/t/ruby-pcap-to-get-at-mac-address/126976/2 "2008-02-10T18:32:37Z")

</div>

On 23.01.2008, at 22:24, Jack Foster wrote:

> I’m familiar with the Ruby/Pcap extension library but it seems to only  
> support getting at the IP/TCP/UDP header information of the packet.
> 
> How do I get the MAC Address? Am I missing something?
> 
> Library is here:  
> [http://www.goto.info.waseda.ac.jp/~fukusima/ruby/pcap-e.html](http://www.goto.info.waseda.ac.jp/~fukusima/ruby/pcap-e.html)

have a look at scruby.

hth., Sandor  
Szücs
