原创 skb函數記錄

consume_skb() /** * consume_skb - free an skbuff * @skb: buffer to free * * Drop a ref to the buffer and free it i

原创 icmp報文

傻逼了,一個ICMP報文搞得這麼複雜,其實就是普通的ip報文,mac地址逐條變化,ip地址不變。中間和其他ip報文一樣,可能有arp請求。 https://blog.51cto.com/14437350/2476952

原创 中斷註冊

https://blog.csdn.net/baidu_31504167/article/details/101712674 linux-4.1.45\include\linux\interrupt.h static inline in

原创 iproute2學習

摘自:《linux大棚命令百篇-網路和系統篇》 網路工具包net-tools和iproute2net-tools基於IOCTL iproute2主要基於Netlink net-tools主要工具: iproute2主要工具:

原创 linux內核定時器

https://www.cnblogs.com/chen-farsight/p/6226562.html  linux內核定時器是一個結構體timer_list,定時器掛載在內核定時器鏈表上。 4.1.45版本內核: struct ti

原创 linux內核信號量semaphore

https://www.cnblogs.com/bulllbat/archive/2012/03/23/2414205.html https://www.cnblogs.com/zxc2man/p/6862642.html https:/

原创 in_device和in_ifaddr數據結構

net_device、in_device、in_ifaddr數據結構關係: 一、in_device數據結構: IP配置塊,網絡設備層與IPv4相關的配置都存放在in_device結構中,應用層可以通過ip或者ifconfig工具來修改這

原创 sock結構--prot結構

sock結構怎麼這麼負責,跟sk_buff又得一比了。 點贊 收藏 分享 文章舉報 hhhhhyyyyy8 發佈了159 篇原創文章 · 獲贊 108 · 訪問量 22萬+

原创 linux nc命令學習

參考:《linux大棚命令百篇-網絡和系統篇》書籍 nc:netcat,網貓 看一下man nc中對nc的描述: 第一句話的意識是:nc工具能夠勝任全天下跟TCP/UDP相關的一切操作。 https://www.runoob.com/l

原创 Linux內核jhash

https://blog.csdn.net/qiujiahao123/article/details/64940620 include/linux/jhash.h 點贊 收藏 分享 文章舉報

原创 net-tools工具箱

雖說net-tools工具箱要被iproute2取代,但是連net-tools工具都不會,也說不過去吧。 net-tools工具箱包括arp, hostname, ifconfig, netstat, rarp, route, plipc

原创 Linux進程間通信-共享內存

https://www.cnblogs.com/52php/p/5861372.html (一系列) https://blog.csdn.net/ljianhui/article/details/10253345 https://blog

原创 int類型長度

今天在Ubuntu64位上測試了一下int類型長度,發現是32,不是64。 #include<stdio.h> int main(int argc, char const *argv[]) { printf("sizeof(long

原创 /proc目錄小記

https://www.jianshu.com/p/66a9891a263c https://www.cnblogs.com/dongzhuangdian/p/11366910.html http://man7.org/linux/man

原创 #if0...$endif作用

https://blog.csdn.net/raining_heart/article/details/8019535 https://www.cnblogs.com/nevel/p/6378035.html 點贊 收