Sha256: 80fb748147358dd0dc97777f56b54037869e796a89874b3c94c550c57286ec79

Contents?: true

Size: 611 Bytes

Versions: 11

Compression:

Stored size: 611 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

11 entries across 11 versions & 1 rubygems

Version Path
packetgen-3.0.2 lib/packetgen/header/dns/option.rb
packetgen-3.0.1 lib/packetgen/header/dns/option.rb
packetgen-3.0.0 lib/packetgen/header/dns/option.rb
packetgen-2.8.7 lib/packetgen/header/dns/option.rb
packetgen-2.8.6 lib/packetgen/header/dns/option.rb
packetgen-2.8.5 lib/packetgen/header/dns/option.rb
packetgen-2.8.4 lib/packetgen/header/dns/option.rb
packetgen-2.8.3 lib/packetgen/header/dns/option.rb
packetgen-2.8.1 lib/packetgen/header/dns/option.rb
packetgen-2.8.0 lib/packetgen/header/dns/option.rb
packetgen-2.7.0 lib/packetgen/header/dns/option.rb