Sha256: 9cdc2b2ba64991cc2b76528b0608192329395354487f8868d5b8cdcd2a6aa5e8
Contents?: true
Size: 364 Bytes
Versions: 3
Compression:
Stored size: 364 Bytes
Contents
# encoding: utf-8 require 'pio/type/mac_address' module Pio module Type # Adds ethernet_header macro. module EthernetHeader def ethernet_header(options) class_eval do mac_address :destination_mac mac_address :source_mac uint16 :ether_type, value: options[:ether_type] end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
pio-0.8.1 | lib/pio/type/ethernet_header.rb |
pio-0.8.0 | lib/pio/type/ethernet_header.rb |
pio-0.7.0 | lib/pio/type/ethernet_header.rb |