codekingpro/portable-devtools
114k
1# -*- coding: utf-8 -*-2# Copyright (C) 2016 Fabio Falcinelli, Maximilian Hils3#4# This program is free software: you can redistribute it and/or modify5# it under the terms of the GNU Lesser General Public License as published by6# the Free Software Foundation, either version 3 of the License, or7# (at your option) any later version.8#9# This program is distributed in the hope that it will be useful,10# but WITHOUT ANY WARRANTY; without even the implied warranty of11# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the12# GNU Lesser General Public License for more details.13#14# You should have received a copy of the GNU Lesser General Public License15# along with this program. If not, see <http://www.gnu.org/licenses/>.16import sys as _sys17 18from .consts import Layer, Flag, Param, CalcChecksumsOption, Direction, Protocol19from .packet import Packet20from .windivert import WinDivert21 22__author__ = 'fabio'23__version__ = '2.1.0'24 25if _sys.version_info < (3, 4):26 # add socket.inet_pton on Python < 3.427 import win_inet_pton as _win_inet_pton28 29 assert _win_inet_pton30 31__all__ = [32 "WinDivert",33 "Packet",34 "Layer", "Flag", "Param", "CalcChecksumsOption", "Direction", "Protocol",35]36 