Skip to content

Instantly share code, notes, and snippets.

View junka's full-sized avatar
🥼
life is f**ked

Junjie junka

🥼
life is f**ked
View GitHub Profile
@junka
junka / mirror-port.sh
Last active September 26, 2024 14:00 — forked from lonelymtn/mirror-port.sh
Mirror offloaded traffic between two interfaces using Linux's TC, for HW like DPAA2
#!/usr/bin/env bash
# Time-stamp: <2014-07-31 13:31:43 (ryanc)>
# Time-stamp: <2024-09-26 21:52:50 (junjie.wan)>
#
# Description: Mirror traffic between two interfaces using Linux's
# traffic control subsystem (tc)
trap cleanup EXIT
CLEANUP=1