lib/packetgen/header/dot11.rb in packetgen-2.8.7 vs lib/packetgen/header/dot11.rb in packetgen-3.0.0
- old
+ new
@@ -66,12 +66,11 @@
# send PPI packet on wire. Dot11 FCS trailer should be set.
# @param [String] iface interface name
# @return [void]
def to_w(iface)
- pcap = PCAPRUB::Pcap.open_live(iface, PCAP_SNAPLEN, PCAP_PROMISC,
- PCAP_TIMEOUT)
+ pcap = PCAPRUB::Pcap.open_live(iface, PCAP_SNAPLEN, PCAP_PROMISC, PCAP_TIMEOUT)
pcap.inject self.to_s
pcap.close
end
end
self.add_class PPI
@@ -217,24 +216,9 @@
# Set a flag for parsing Dot11 packets. If set to +true+, parse FCS field,
# else don't. Default is +true+.
# @return [Boolean]
attr_accessor :fcs
alias fcs? fcs
-
- # rubocop:disable Naming/PredicateName
-
- # @deprecated Use {.fcs?} instead.
- def has_fcs
- Deprecation.deprecated(self, __method__, 'fcs?', klass_method: true)
- fcs?
- end
-
- # @deprecated Use {.fcs=} instead.
- def has_fcs=(fcs)
- Deprecation.deprecated(self, __method__, 'fcs=', klass_method: true)
- self.fcs = fcs
- end
- # rubocop:enable Naming/PredicateName
end
Dot11.fcs = true
# @!attribute frame_ctrl
# @return [Integer] 16-bit frame control word