stp.py (4ae3a97e127cea14277b904af31483af7e6e2891) | stp.py (a26e895f3d803cc1f4ee1c2b33c61330998808b9) |
---|---|
1#!/usr/bin/env python3 2# 3# SPDX-License-Identifier: BSD-2-Clause 4# 5# Copyright (c) 2021 Kristof Provost <kp@FreeBSD.org> 6# 7# Redistribution and use in source and binary forms, with or without 8# modification, are permitted provided that the following conditions --- 13 unchanged lines hidden (view full) --- 22# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26# SUCH DAMAGE. 27# 28 29import argparse | 1#!/usr/bin/env python3 2# 3# SPDX-License-Identifier: BSD-2-Clause 4# 5# Copyright (c) 2021 Kristof Provost <kp@FreeBSD.org> 6# 7# Redistribution and use in source and binary forms, with or without 8# modification, are permitted provided that the following conditions --- 13 unchanged lines hidden (view full) --- 22# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26# SUCH DAMAGE. 27# 28 29import argparse |
30import logging 31logging.getLogger("scapy").setLevel(logging.CRITICAL) |
|
30import scapy.all as sp 31import sys 32import os 33curdir = os.path.dirname(os.path.realpath(__file__)) 34netpfil_common = curdir + "/../netpfil/common" 35sys.path.append(netpfil_common) 36from sniffer import Sniffer 37 --- 75 unchanged lines hidden --- | 32import scapy.all as sp 33import sys 34import os 35curdir = os.path.dirname(os.path.realpath(__file__)) 36netpfil_common = curdir + "/../netpfil/common" 37sys.path.append(netpfil_common) 38from sniffer import Sniffer 39 --- 75 unchanged lines hidden --- |