Skip to content
This repository has been archived by the owner on Sep 15, 2018. It is now read-only.

Latest commit

 

History

History
53 lines (30 loc) · 1.96 KB

README-en.md

File metadata and controls

53 lines (30 loc) · 1.96 KB

gofsnet

A simple project to learn IEEE 802.1X protocol and drcom protocol (version: 5.2.x) with golang.

Try it

  • This project is using gopacket packages, so if you want to build it, you should make sure you have done following things before start.

Install the prerequisites. You will need go, libpcap and the gopacket package. Since gopacket is built on top of libpcap, I highly recommend you understand how that library works. You can learn how to use libpcap in C for a deeper understanding. These examples should work in Linux/Mac using libpcap and on Windows with WinPcap. You may need to set GOARCH=386 if you get an error like cc1.exe: sorry, unimplemented: 64-bit mode not compiled in.

# Get the gopacket package from GitHub
go get github.com/google/gopacket
# Pcap dev headers might be necessary
sudo apt-get install libpcap-dev

You might also want to check out the gopacket project on GitHub and documentation on GoDoc gopacket.

There is also a wiki about how to build it.

run

gofsnet [-c CONFIG-FILE]

TODO

  • Add more test codes
  • Better documentation

LICENSE

This project is licensed under the GNU License - see the LICENSE file for details

Acknowledgments

Inspiration & Ideas

Reference

Warning

This project is written only for learning and testing, you should not apply it for any illegal usage.