eth
raw Ethernet frame crafting, MAC operations, EtherType handling.
Load with: use eth
Quick example
use eth
result = ethmk("value", "value", "value", "value")
prn(result)
Functions
Functions
ethmk(dst, src, etyp, payload)
Creates a new instance. Takes dst, src, etyp, payload.
ethip(dst, src, payload)
Performs the operation. Takes dst, src, payload.
ethap(dst, src, payload)
Performs the operation. Takes dst, src, payload.
ethv6(dst, src, payload)
Performs the operation. Takes dst, src, payload.
ethvl(dst, src, vid, pri, payload)
Validates. Takes dst, src, vid, pri, payload.
ethen(frm)
Encodes. Takes frm.
ethde(raw)
Decodes. Takes raw.
ethbc()
Performs the operation.
ethrn()
Performs the operation.
ethpm(mac)
Performs the operation. Takes mac.
ethvm(mac)
Performs the operation. Takes mac.
ethmu(mac)
Performs the operation. Takes mac.
ethml(mac)
Performs the operation. Takes mac.
ethou(mac)
Performs the operation. Takes mac.
ethsn(iface)
Performs the operation. Takes iface.
ethtx(iface, frm)
Performs the operation. Takes iface, frm.
ethls()
Lists items.
ethma(iface)
Performs the operation. Takes iface.
eth_mk(d, s, t, p)
Creates a new instance. Takes d, s, t, p.
eth_ip(d, s, p)
Performs the operation. Takes d, s, p.
eth_arp(d, s, p)
Performs the operation. Takes d, s, p.
eth_enc(f)
Performs the operation. Takes f.
eth_dec(r)
Performs the operation. Takes r.
eth_bc()
Performs the operation.
eth_rnd()
Performs the operation.
eth_ok(m)
Performs the operation. Takes m.
eth_oui(m)
Performs the operation. Takes m.
eth_snif(i)
Performs the operation. Takes i.
eth_send(i, f)
Performs the operation. Takes i, f.
eth_ifs()
Performs the operation.
eth_mac(i)
Performs the operation. Takes i.
Notes
- Ethereum/EVM helpers - ABI encoding, address validation, tx building.