Skip to content

自己实现ping(在mac上用gcc编译成功)

Notifications You must be signed in to change notification settings

flames85/myping

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

myping

只有root用户才能利用socket()函数生成原始套接字,要让Unix的一般用户能执行以上程序,需进行如下的特别操作:

sudo chown root myping // 把myping属于root用户

sudo chmod u+s myping // 把myping程序设成SUID的属性。

./myping www.cn.ibm.com

About

自己实现ping(在mac上用gcc编译成功)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published