[英]Is there a way I can set the TTL (time to live) as an argument when compiling this small ping application
我正在使用 Echo 請求和回復為 ICMP 協議 (ping) 構建一個小型應用程序。 生存時間 (TTL) 默認設置為接收器的 TTL,我想知道在編譯代碼時是否可以幫助我將自定義 TTL 設置為參數。 預先感謝您的寶貴幫助。 編譯: gcc -o MyPing 文件名.c sudo./myp ...