Linux select
select使用记录 man select https://www.man7.org/linux/man-pages/man2/select.2.html WARNING: select() can monitor only file descriptors numbers that are less than FD_SETSIZE (1024)—an un...
select使用记录 man select https://www.man7.org/linux/man-pages/man2/select.2.html WARNING: select() can monitor only file descriptors numbers that are less than FD_SETSIZE (1024)—an un...
一些有关ssh的使用记录 通过scp复制文件 上传本地文件到远程服务器: scp /path/to/local/file.txt user@remote_host:/path/to/remote/directory/ 这条命令会把本地的file.txt复制到远程主机的指定目录下。 从远程服务器下载文件到本地: scp user@remote_host:/path/to/remote/f...
ppp项目 首页 https://ppp.samba.org/ 源码下载地址 https://download.samba.org/pub/ppp/ 在线源码浏览 https://git.ozlabs.org/?p=ppp.git;a=summary https://github.com/ppp-project/ppp/ deepwiki分析 https://deepwiki.com...
最近在 APNIC blog 上看到了一篇文章Ossification and the Internet,里面提到了 ossification 这个词。ossification 可以翻译为骨化或者石化,对于网络来说,就是意味着成熟且广泛使用的协议,很难去改进和进化,以至于网络长期停留在某一个特定阶段。文中列举了现在使用的一些主要协议,包括网络层的 IP,传输层的 TCP 和 UDP,路由协议...
关于neighbour邻居子系统的一些新知(内核版本6.18.2) 主机如果接收到arp request报文并发送arp reply报文后,这个时候neigh的状态只会更新成stale而不是reachable,当该主机之后发送arp request并收到arp reply之后,才会将neigh状态从stale更新为reachable。 这个现象可以使用arping来验证。 ...
wiki.gentoo.org 上的这篇文章Kernel/Optimization介绍了很多关于 Linux 内核编译优化的事情。其中有如下一段。 *FLAGS Note For more list of *FLAGS to play with, see the GCC manual and Clang manual or man 1 gcc and man 1 ...
在内核函数ip_finish_output2中,在通过ip_neigh_for_gw获取到neigh信息之后(这里可能是首次创建,也可能是使用已有的neigh),在使用neigh_output发送报文之前,会调用sock_confirm_neigh对neigh的confirmed时间和sock的sk_dst_pending_confirm标志进行更新,在更新之前会判断skb是否设置了dst_...
打开调试keepalive开关(enable模式) debug bgp keepalives 打开log到File功能(config模式) log file /var/log/frr/debug.log 查看log文件 /var/log/frr$ ls -l total 8 -rw-r—– 1 frr frr 7786 Feb 6 06:47 debug.log 关闭调试kee...
netmap – a framework for fast packet I/O https://man.freebsd.org/cgi/man.cgi?query=netmap&sektion=4 netmap man page https://manpage.me/?netmap An introduction to Netmap https://conferences.si...
网络设备,几乎都有一个唯一的,且独一无二的MAC地址,比如我们平时使用的手机,电脑。在手机上,蓝牙设备和WLAN设备有各自独立的MAC地址,具体可以参考iOS或者Android的系统信息页。 MAC地址是一个48bit,可以表示为6个字节的序列。主要分为两个部分,厂商ID和设备ID。厂商ID以前叫做OUI (Organizationally Unique Identifier) ,在IEE...