Skip to content

Commit

Permalink
receive
Browse files Browse the repository at this point in the history
  • Loading branch information
bokunimowakaru committed Apr 16, 2023
1 parent 410ef8b commit 30b5b84
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ This repository also contains some ICMP Ping examples for leaning the protocol a
These files are needed the super user privileges. So, please add a "sudo" command to the beginning of these files to run.

pi@raspberry:~/udp $ sudo ./icmp_ping.py
ICMP Ping Sender Reciever
ICMP Ping Sender Receiver
Usage: sudo ./icmp_ping.py [ip_address] [data...]
send Ping to 127.0.0.1
ICMP TX(08) : 08 00 93 c0 e5 b9 7e 85
Expand Down
2 changes: 1 addition & 1 deletion icmp_ping.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def checksum_calc(payload):
return sum.to_bytes(2, 'big')

argc = len(sys.argv) # 引数の数をargcへ代入
print('ICMP Ping Sender Reciever') # タイトル表示
print('ICMP Ping Sender Receiver') # タイトル表示
print('Usage: sudo',sys.argv[0],'[ip_address] [data...]') # 使用方法
if argc >= 2: # 入力パラメータ数の確認
try:
Expand Down

0 comments on commit 30b5b84

Please sign in to comment.