KO
|
EN
gitlite — search
Search
#python
#java
#python3
#arduino
#golang
#machine-learning
#rust
#html
#flask
#javascript
#seismology
#nodejs
goshark
★ 18
Open GitHub ↗
No description available.
Download README (.md)
Explore Similar Repositories
steam-linux-cjkfix
:
修复linux下steam CJK字符显示bug
hash-roll
:
A variety of content chunking algorithms with a common API in rust
okhttpdemo
:
No description available.
silverstripe-redux-example
:
An toy application using redux
excel2db
:
游戏开发中有原型数据,而原型数据经常都是通过excel进行编写,此项目将excel转成ndb文件(二进制文件),然后客户端和服务器可以按照指定的格式读取
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
goshark
?
Download (.md)
# goshark [](https://travis-ci.org/sunwxg/goshark) [](http://godoc.org/github.com/sunwxg/goshark) Package goshark use tshark to decode IP packet and create data struct to analyse packet. ### Dependency * tshark ### Examples ```go file := "2.pcap" d := goshark.NewDecoder() if err := d.DecodeStart(file); err != nil { log.Println("Decode start fail:", err) return } defer d.DecodeEnd() f, err := d.NextPacket() if err != nil { log.Println("Get packet fail:", err) return } key := "igmp.maddr" value, ok := f.Iskey(key) if ok { fmt.Printf("key: %s\nvalue: %s\n", key, value) } ``` Output: ``` key: igmp.maddr value: 224.0.0.251 ```