Skip to content

Commit 45dc0fd

Browse files
committed
feat: Debug eap-proxy packets commands
1 parent f647193 commit 45dc0fd

File tree

8 files changed

+31
-5
lines changed

8 files changed

+31
-5
lines changed

Makefile.am

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ sbin_SCRIPTS =
1010
sbin_SCRIPTS += scripts/eap_proxy.py
1111
sbin_SCRIPTS += scripts/vyatta-service-eap-proxy-update.sh
1212
sbin_SCRIPTS += scripts/vyatta-service-eap-proxy-restart.sh
13+
sbin_SCRIPTS += scripts/vyatta-debug-eap-proxy-tcpdump.sh
1314

1415
bin_sudo_users_SCRIPTS =
1516

debian/changelog

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
vyatta-eap-proxy (0.4.1) unstable; urgency=low
2+
3+
* `debug eap-proxy packets` command
4+
5+
-- Morgan Humes <[email protected]> Wed, 28 Feb 2019 13:26:30 -0600
6+
17
vyatta-eap-proxy (0.4.0) unstable; urgency=low
28

39
* Validate interface references

scripts/eap_tcpdump.sh

Lines changed: 0 additions & 5 deletions
This file was deleted.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
# Use tcpdump to debug EAP traffic
3+
set -x
4+
tcpdump -xx -e -n -vvv -i ${1:-eth0} ether proto 0x888e
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
help: Enable EAP Proxy debugging
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
help: Capture EAP Proxy packets on configured destination interface
2+
run: if cli-shell-api existsActive service eap-proxy; then
3+
eval $(echo $(/bin/cli-shell-api getSessionEnv $PPID))
4+
cli-shell-api setupSession
5+
IF_DEST=$(cli-shell-api returnValue service eap-proxy dest-interface)
6+
sudo /opt/vyatta/sbin/vyatta-debug-eap-proxy-tcpdump.sh ${IF_DEST}
7+
else
8+
echo EAP Proxy is not configured
9+
fi
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
help: Enable EAP Proxy packet debugging
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
help: Capture EAP Proxy packets on configured source interface
2+
run: if cli-shell-api existsActive service eap-proxy; then
3+
eval $(echo $(/bin/cli-shell-api getSessionEnv $PPID))
4+
cli-shell-api setupSession
5+
IF_SRC=$(cli-shell-api returnValue service eap-proxy src-interface)
6+
sudo /opt/vyatta/sbin/vyatta-debug-eap-proxy-tcpdump.sh ${IF_SRC}
7+
else
8+
echo EAP Proxy is not configured
9+
fi

0 commit comments

Comments
 (0)