上一页 1 ··· 23 24 25 26 27 28 29 30 31 ··· 53 下一页
摘要: 原文链接:https://www.cnblogs.com/nerohwang/p/3621316.html hello.c 文件: Makefile文件: 测试结果: 查看编译后文件: 阅读全文
posted @ 2019-11-02 14:35 salami_china 阅读(290) 评论(0) 推荐(0) 编辑
摘要: 流表组成 每条流表规则由一些列字段组成,可以分为**基础字段、匹配字段和动作字段**三部分。 在打印流表时,在流表中还存在一些显示字段,如duration,idle_age等,此处把这些字段也暂时归之于基础字段之中. 流表组成部分字段说明 基础字段: cookie=value 流表标识字段,cook 阅读全文
posted @ 2019-11-01 14:30 salami_china 阅读(8952) 评论(1) 推荐(1) 编辑
摘要: 源码: package main import ( "flag" "fmt" "github.com/pkg/errors" "net" "os" "syscall" "unsafe" ) var ( HostName, _ = os.Hostname() ETH_P_ARP = 0x0806 AF 阅读全文
posted @ 2019-10-29 19:01 salami_china 阅读(1801) 评论(0) 推荐(0) 编辑
摘要: 下载ctrie: go get -t github.com/Workiva/go-datastructures/trie/ctrie 测试demo1: package main import ( "fmt" "github.com/Workiva/go-datastructures/trie/ctr 阅读全文
posted @ 2019-10-29 10:13 salami_china 阅读(287) 评论(0) 推荐(0) 编辑
摘要: 原文链接:https://www.cnblogs.com/wipy/p/4261472.html 有时候,linux 由于硬盘或者其它原因, 某个进程挂住了,怎么也杀不死, 输入 reboot 命令也无法重启。 这时候,一般只能按机箱上的reset健来重启了。 如果是远程ssh,那怎么办呢? 下面两 阅读全文
posted @ 2019-10-28 16:27 salami_china 阅读(739) 评论(0) 推荐(0) 编辑
摘要: 原文链接:Goland_IDE的护眼、主题、字体等设置 1、代码格式化 File->Settings->Tools->File Watchers->+->go fmt->将Name一栏go fmt中间的空格去掉即可应用,在保存的时候就可代码格式化。 2、护眼设置 File->Settings->Ed 阅读全文
posted @ 2019-10-23 15:51 salami_china 阅读(821) 评论(0) 推荐(0) 编辑
摘要: 原文链接:https://www.devdungeon.com/content/packet-capture-injection-and-analysis-gopacket 接口文档:https://godoc.org/github.com/google/gopacket Demo1(Find de 阅读全文
posted @ 2019-10-22 17:47 salami_china 阅读(1664) 评论(0) 推荐(0) 编辑
摘要: 原文链接:https://codeday.me/bug/20181110/371346.html 创建快照: 问题:快照删除失败 解决: 阅读全文
posted @ 2019-10-21 14:36 salami_china 阅读(504) 评论(0) 推荐(0) 编辑
摘要: import strings func IsIPv4(address string) bool { return strings.Count(address, ":") = 2 } 阅读全文
posted @ 2019-10-15 16:45 salami_china 阅读(2876) 评论(0) 推荐(0) 编辑
摘要: IPv4 互换: IPv6互换: 测试结果: 阅读全文
posted @ 2019-10-15 16:24 salami_china 阅读(2786) 评论(2) 推荐(1) 编辑
上一页 1 ··· 23 24 25 26 27 28 29 30 31 ··· 53 下一页