Sha256: 9f98cf7d9c9907557beeb49a407d28f2558fd84174b4069fe0b5e0b299bee3be
Contents?: true
Size: 1.53 KB
Versions: 6
Compression:
Stored size: 1.53 KB
Contents
# coding: utf-8 # 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. module PacketGen module Header class IKE # This class handles Vendor ID payloads, as defined in RFC 7296 ยง3.12. # # A Vendor ID payload contains a generic payload header (see {Payload}) # and data field (type {Types::String}): # 1 2 3 # 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 # +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ # | Next Payload |C| RESERVED | Payload Length | # +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ # | | # ~ VendorID Data ~ # | | # +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ # # == Create a Vendor ID payload # # Create a IKE packet with a Vendor ID payload # pkt = PacketGen.gen('IP').add('UDP').add('IKE') # pkt.add('IKE::VendorID', data: "abcdefgh") # @author Sylvain Daubert class VendorID < Payload # Payload type number PAYLOAD_TYPE = 43 end end self.add_class IKE::VendorID end end
Version data entries
6 entries across 6 versions & 1 rubygems