Open robotwxy opened 6 years ago
inet_addr():将一个点间隔地址转换成一个in_addr ulong l= inet_addr("192.168.0.74"); inet_ntoa(): 将网络地址转换成“.”点隔的字符串格式 struct in_addr addr1; inet_ntoa(addr1); inet_aton(): 字符串IP地址转换为一个32位的网络序列IP地址 struct sockaddr_in adr_inet; inet_aton("127.0.0.1",&adr_inet.sin_addr);
script命令可以收集所有在terminal上打印的信息。
dump_stack(); 可以在kernel中打印出函数栈。
grep -r "" ./
%pf 可以打印函數指針指向的函數名
iw send cmd: NL80211_CMD_TRIGGER_SCAN driver recv cmd: NL80211_CMD_TRIGGER_SCAN ->nl80211_trigger_scan()->rdev_scan()->realtek_cfg80211_scan() ->start_clnt_ss() //start timer->rtl8192cd_ss_timer()->event_indicate_cfg80211()->cfg80211_scan_done() driver send cmd: NL80211_CMD_NEW_SCAN_RESULTS iw recv cmd: NL80211_CMD_NEW_SCAN_RESULTS iw send cmd: NL80211_CMD_GET_SCAN driver recv cmd: NL80211_CMD_GET_SCAN nl80211_dump_scan()->nl80211_send_bss() driver send cmd: NL80211_CMD_NEW_SCAN_RESULTS iw recv bss
git: clone status log reflog add . commit -m reset --hard HEAD^ push pull
https://robotwxy.github.io/2017/10/29/Notes/