LoginSignup
1
2

More than 5 years have passed since last update.

linux / udp > 受信文字列を表示したい > tcpdump -A -n udp portrange 6000

Last updated at Posted at 2015-11-08

http://qiita.com/7of9/items/22a93d7162f314b976a3
においてUDP通信の受信をした時、受信文字数は分かるが実際の受信文字列は表示されない。

受信文字列を表示したい。

動作確認
送信側: RaspberryPi2 + raspbian
受信側: CentOS 6.5 32bit (IP: 192.168.10.8)

root権限で受信側(CentOS)で以下を実行しておく。

# tcpdump -A -n udp portrange 6000

送信側(RPi2)で以下を実行する。

$ echo "TEST" | nc -u 192.168.10.8 6000

以下が受信側の実行結果。

# tcpdump -A -n udp portrange 6000
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth0, link-type EN10MB (Ethernet), capture size 65535 bytes
22:33:10.814334 IP 192.168.10.5.35111 > 192.168.10.8.6000: UDP, length 5
E..!..@.@..~..
...
.ETEST
.............

余計な文字列があるが、TESTが受信されている様子が見られた。

1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2