Skip to content

Commit

Permalink
add a comment why 28 bytes a substracted
Browse files Browse the repository at this point in the history
Signed-off-by: Marc Schöchlin <[email protected]>
  • Loading branch information
scoopex committed Sep 13, 2024
1 parent a0a6e91 commit be2d397
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ done < <(sudo vtysh -c "show ip bgp summary"|awk '/^enp/{if ($10 !~/[0-9][0-9]*/

while read node
do
# MTU 9100 - (8 bytes for ICMP headers and 20 bytes for Ethernet header)
ping -M do -c ${1:-2} -s $((9100 - 28)) $node
if [ "$?" != "0" ];then
failed="PING:$node $failed"
Expand Down

0 comments on commit be2d397

Please sign in to comment.