Sha256: 1427096c8e7b872e8af8f1710ff4f3fc83b18d6317276011e54a2fca13e2b219

Contents?: true

Size: 613 Bytes

Versions: 4

Compression:

Stored size: 613 Bytes

Contents

# This file is part of PacketGen
# See https://github.com/sdaubert/packetgen for more informations
# Copyright (C) 2016 Sylvain Daubert <sylvain.daubert@laposte.net>
# This program is published under MIT license.

# frozen_string_literal: true

module PacketGen
  module Header
    class DNS

      # DNS option
      # @author Sylvain Daubert
      class Option < Types::TLV

        # Force {#type} and {#length} fields to be {Types::Int16}
        # @see TLV#initialize
        def initialize(options={})
          super options.merge!(t: Types::Int16, l: Types::Int16)
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
packetgen-2.6.0 lib/packetgen/header/dns/option.rb
packetgen-2.5.2 lib/packetgen/header/dns/option.rb
packetgen-2.5.1 lib/packetgen/header/dns/option.rb
packetgen-2.5.0 lib/packetgen/header/dns/option.rb