Sha256: aa13e6cf3998f0ef5a7826f047f5358d55c5f084dd722f8f72ecd09302f56a29

Contents?: true

Size: 980 Bytes

Versions: 46

Compression:

Stored size: 980 Bytes

Contents

# $Id: network_types.rb,v 1.1.1.1 2005/07/02 19:10:57 hobe Exp $
#

require 'ifconfig/common/network_types'

#
# Base class for IPX and Appletalk classes
# Shouldn't be used directly
#
class MiscEthernet < BasicNetworkType
  def initialize(addr)
    super()
    @addr = addr
  end
  attr_reader :addr
  def to_s
    " #{@nettype} Address: #{@addr}"
  end
end

class IPX_EthernetII < MiscEthernet
  def initialize(addr)
    super(addr)
    @nettype = 'IPX/Ethernet II'
  end
end

class IPX_Ethernet802_2 < MiscEthernet
    def initialize(addr)
    super(addr)
    @nettype = 'IPX/Ethernet 802.2'
  end
end

class IPX_Ethernet802_3 < MiscEthernet
    def initialize(addr)
    super(addr)
    @nettype = 'IPX/Ethernet 802.3'
  end
end

class EtherTalkPhase2 < MiscEthernet
    def initialize(addr)
    super(addr)
    @nettype = 'EtherTalk Phase 2'
  end
end

class IPX_EthernetSNAP < MiscEthernet
  def initialize(addr)
    super(addr)
    @nettype = 'IPX/Ethernet SNAP'
  end
end

Version data entries

46 entries across 46 versions & 2 rubygems

Version Path
aaalex-ruby-ifconfig-1.2.1 lib/ifconfig/linux/network_types.rb
aaalex-ruby-ifconfig-1.2.2 lib/ifconfig/linux/network_types.rb
aaalex-ruby-ifconfig-1.2.3 lib/ifconfig/linux/network_types.rb
trema-0.4.7 vendor/ruby-ifconfig-1.2/lib/ifconfig/linux/network_types.rb
trema-0.4.6 vendor/ruby-ifconfig-1.2/lib/ifconfig/linux/network_types.rb
trema-0.4.5 vendor/ruby-ifconfig-1.2/lib/ifconfig/linux/network_types.rb
trema-0.4.4 vendor/ruby-ifconfig-1.2/lib/ifconfig/linux/network_types.rb
trema-0.4.3 vendor/ruby-ifconfig-1.2/lib/ifconfig/linux/network_types.rb
trema-0.4.2 vendor/ruby-ifconfig-1.2/lib/ifconfig/linux/network_types.rb
trema-0.4.1 vendor/ruby-ifconfig-1.2/lib/ifconfig/linux/network_types.rb
trema-0.4.0 vendor/ruby-ifconfig-1.2/lib/ifconfig/linux/network_types.rb
trema-0.3.21 vendor/ruby-ifconfig-1.2/lib/ifconfig/linux/network_types.rb
trema-0.3.20 vendor/ruby-ifconfig-1.2/lib/ifconfig/linux/network_types.rb
trema-0.3.19 vendor/ruby-ifconfig-1.2/lib/ifconfig/linux/network_types.rb
trema-0.3.18 vendor/ruby-ifconfig-1.2/lib/ifconfig/linux/network_types.rb
trema-0.3.17 vendor/ruby-ifconfig-1.2/lib/ifconfig/linux/network_types.rb
trema-0.3.16 vendor/ruby-ifconfig-1.2/lib/ifconfig/linux/network_types.rb
trema-0.3.15 vendor/ruby-ifconfig-1.2/lib/ifconfig/linux/network_types.rb
trema-0.3.14 vendor/ruby-ifconfig-1.2/lib/ifconfig/linux/network_types.rb
trema-0.3.13 vendor/ruby-ifconfig-1.2/lib/ifconfig/linux/network_types.rb