上一页 1 2 3 4 5 6 7 8 ··· 46 下一页
摘要: 网上搜的是这样的 : 但是会有没有match上的现象,可以,使用: 参考: http://ipset.netfilter.org/iptables extensions.man.html 阅读全文
posted @ 2019-06-26 13:19 苏小北1024 阅读(1780) 评论(0) 推荐(0)
摘要: ``` #cat file { "Bangalore_City": "35_Temperature", "NewYork_City": "31_Temperature", "Copenhagen_City": "29_Temperature" } ``` ``` #cat json.go package main import ( "fmt" "encoding/j... 阅读全文
posted @ 2019-06-25 18:12 苏小北1024 阅读(1917) 评论(0) 推荐(0)
摘要: ``` apt-get -f install wget -c https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.1/linux-headers-5.1.0-050100_5.1.0-050100.201905052130_all.deb wget -c https://kernel.ubuntu.com/~kernel-ppa/mainline... 阅读全文
posted @ 2019-06-25 12:01 苏小北1024 阅读(830) 评论(0) 推荐(0)
摘要: ``` json.loads() 是将字符串传化为字典 json.dumps () 是将字典转化为字符串 ``` ``` >>> dict = "{8:'bye', 'you':'coder'}" #假字典 fake >>> print type(dict) >>> print dict {8:'bye', 'you':'coder'} # 哟呵,输出 >>> dict_real = {... 阅读全文
posted @ 2019-06-24 14:13 苏小北1024 阅读(365) 评论(0) 推荐(0)
摘要: centos7 install vim8 Git and dependency Git: https://github.com/vim/vim configure install 阅读全文
posted @ 2019-05-26 11:29 苏小北1024 阅读(402) 评论(0) 推荐(0)
摘要: Linux的Network Tunnel技术 概要 Linux上可以使用ip tunnel命令创建多种类型的tunnel。 在 man ip tunnel 中可以得知以下几种类型的tunnel: ip tunnel的使用方法: ipip mode ipip tunnel是最简单的一种,将ipv4报文 阅读全文
posted @ 2019-05-24 08:58 苏小北1024 阅读(1566) 评论(0) 推荐(0)
摘要: Linux内核网络数据包处理流程 from kernel 4.9: 0. Linux内核网络数据包处理流程 网络硬件 网卡工作在物理层和数据链路层,主要由PHY/MAC芯片、Tx/Rx FIFO、DMA等组成,其中网线通过变压器接PHY芯片、PHY芯片通过MII接MAC芯片、MAC芯片接PCI总线 阅读全文
posted @ 2019-05-14 13:47 苏小北1024 阅读(12052) 评论(0) 推荐(0)
摘要: lspci详解分析 一、PCI简介 PCI是一种外设总线规范。我们先来看一下什么是总线:总线是一种传输信号的路径或信道。典型情况是,总线是连接于一个或多个导体的电气连线,总 线上连接的所有设备可在同一时间收到所有的传输内容。总线由电气接口和编程接口组成。本文讨论Linux 下的设备驱动,所以,重点关 阅读全文
posted @ 2019-05-09 12:57 苏小北1024 阅读(3481) 评论(0) 推荐(0)
摘要: QuickStart 环境 运行前配置 配置系统HugePages 加载uio驱动 build dpdk 绑定网卡到uio驱动 dpdk的应用程序要使用某块网卡是,需要使用 将网卡绑定到驱动 。 在dpdk对网卡的称呼是port, 就是网口。 先把eth0 设备down掉,才能,将eth0绑定成功 阅读全文
posted @ 2019-05-07 16:43 苏小北1024 阅读(1320) 评论(0) 推荐(0)
摘要: bond0模块的加载 Bonding原理 为方便理解bonding的配置及实现,顺便阐述一下Linux的网络接口及其配置文件。在 Linux 中,所有的网络通讯都发生在软件接口与物理网络设备之间。与网络接口配置相关的文件,以及控制网络接口状态的脚本文件,全都位于 /etc/sysconfig/net 阅读全文
posted @ 2019-05-07 15:47 苏小北1024 阅读(2184) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 ··· 46 下一页