MCPcopy Index your code
hub / github.com/dmbaturin/encapcalc

github.com/dmbaturin/encapcalc @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
13 symbols 28 edges 2 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

encapcalc

maintenance-status

An visual tunnel MTU/MSS calculator in pure client-side HTML/JS.

Tunnel MTU/MSS calculation is a common task. Calculating it is a common task, and many beginners find it confusing. This project tries to make it easy to do and understand what's going on.

To run it locally, just clone the repo and point your browser to the index.html file.

A live version is available at https://baturin.org/tools/encapcalc/

Data sources

  • GRE: RFC2784
  • GRE keys and sequence numbers: RFC2890
  • NVGRE: RFC7637 (it's really just GRE with the key field reused for virtual network ID)
  • VXLAN: RFC7348
  • STT: RFC draft
  • MACSec: "an additional 16-byte MACsec Security Tag or SecTAG was included, as well as a 16-byte Integrity Check Value (ICV) at the end of the frame" (1)
  • LISP: RFC6830
  • EoIP: https://help.mikrotik.com/docs/pages/viewpage.action?pageId=24805521
  • GENEVE: https://tools.ietf.org/html/rfc8926#section-3.4 (however, it also supports variable-length options)

Core symbols most depended-on inside this repo

handleEvent
called by 5
encapcalc.js
protocolEnabled
called by 2
encapcalc.js
calculateOverhead
called by 2
encapcalc.js
addProtocol
called by 2
encapcalc.js
makeSharingLink
called by 1
encapcalc.js
updateSharingLink
called by 1
encapcalc.js
generateProtocolButtons
called by 1
encapcalc.js
addProtocols
called by 1
encapcalc.js

Shape

Function 13

Languages

TypeScript100%

Modules by API surface

encapcalc.js13 symbols

For agents

$ claude mcp add encapcalc \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact