Class: Pcap::UDPPacket
- Defined in:
- lib/pcap/packet.rb,
ext/pcap/udp_packet.c
Instance Method Summary collapse
- #dport ⇒ Object
-
#dport= ⇒ Object
Set UDP destination port and update checksum.
- #sport ⇒ Object
-
#sport= ⇒ Object
Set UDP source port and update checksum.
- #to_s ⇒ Object
- #udp_csum_ok? ⇒ Boolean
- #udp_csum_update! ⇒ Object
- #udp_data ⇒ Object
- #udp_dport ⇒ Object
-
#udp_dport= ⇒ Object
Set UDP destination port and update checksum.
- #udp_len ⇒ Object
-
#udp_sport ⇒ Object
define methods under IPv4.
-
#udp_sport= ⇒ Object
Set UDP source port and update checksum.
- #udp_sum ⇒ Object
- #udp_truncated? ⇒ Boolean
Methods inherited from IPPacket
#dst, #dst=, #ip_data, #ip_df?, #ip_dst, #ip_dst=, #ip_flags, #ip_hlen, #ip_id, #ip_len, #ip_mf?, #ip_off, #ip_proto, #ip_src, #ip_src=, #ip_sum, #ip_sum_update!, #ip_sumok?, #ip_tos, #ip_truncated?, #ip_ttl, #ip_ver, #src, #src=
Methods inherited from Packet
#=~, #_dump, #_dump_to, _load, _load_from, #arp?, #caplen, #datalink, #dst_mac_address, #ethertype, #inspect, #ip?, #ipv6?, #lacp?, #length, #raw_data, #size, #src_mac_address, #tcp?, #time, #time_i, #time_i=, #udata, #udata=, #udp?, #unpack_hex_string
Instance Method Details
#dport ⇒ Object
#dport= ⇒ Object
Set UDP destination port and update checksum
165 166 167 |
# File 'ext/pcap/udp_packet.c', line 165 static VALUE udpp_dport_set(self, val) VALUE self, val; |
#sport ⇒ Object
#sport= ⇒ Object
Set UDP source port and update checksum
139 140 141 |
# File 'ext/pcap/udp_packet.c', line 139 static VALUE udpp_sport_set(self, val) VALUE self, val; |
#to_s ⇒ Object
60 61 62 |
# File 'lib/pcap/packet.rb', line 60 def to_s "#{src}:#{sport} > #{dst}:#{dport} len #{udp_len} sum #{udp_sum}" end |
#udp_csum_ok? ⇒ Boolean
264 265 266 |
# File 'ext/pcap/udp_packet.c', line 264 static VALUE udpp_csumok(self) VALUE self; |
#udp_csum_update! ⇒ Object
81 82 83 |
# File 'ext/pcap/udp_packet.c', line 81 static VALUE udpp_csum_update(self) VALUE self; |
#udp_data ⇒ Object
#udp_dport ⇒ Object
#udp_dport= ⇒ Object
Set UDP destination port and update checksum
165 166 167 |
# File 'ext/pcap/udp_packet.c', line 165 static VALUE udpp_dport_set(self, val) VALUE self, val; |
#udp_len ⇒ Object
#udp_sport ⇒ Object
define methods under IPv4
#udp_sport= ⇒ Object
Set UDP source port and update checksum
139 140 141 |
# File 'ext/pcap/udp_packet.c', line 139 static VALUE udpp_sport_set(self, val) VALUE self, val; |
#udp_sum ⇒ Object
#udp_truncated? ⇒ Boolean
310 311 312 |
# File 'ext/pcap/udp_packet.c', line 310 static VALUE udpp_truncated(self) VALUE self; |