'Constructor'

def __init__(self, **kwargs):

    self.sessions = {}
    self.alerts = False
    self.file = None
    dshell.TCPDecoder.__init__(self, name='country', description='filter    connections    on    geolocation    (country    code)', longdescription='\ncountry:    filter    connections    on    geolocation    (country    code)\n\nChainable    decoder    to    filter    TCP/UDP    streams    on    geolocation    data.        If    no\ndownstream    (+)    decoders    are    specified,    netflow    data    will    be    printed    to\nthe    screen.\n\nMandatory    option:\n\n        --country_code:    specify    (2    character)    country    code    to    filter    on\n\nDefault    behavior:\n\n        If    either    the    client    or    server    IP    address    matches    the    specified    country,\n        the    stream    will    be    included.\n\nModifier    options:\n\n        --country_neither:    Include    only    streams    where    neither    the    client    nor    the\n                                                                                    server    IP    address    matches    the    specified    country.\n\n        --country_both:                Include    only    streams    where    both    the    client    AND    the    server\n                                                                                    IP    addresses    match    the    specified    country.\n\n        --country_notboth:    Include    streams    where    the    specified    country    is    NOT    BOTH\n                                                                                    the    client    and    server    IP.        Streams    where    it    is    one    or\n                                                                                    the    other    may    be    included.\n\n\nExample:\n\n        decode    -d    country    traffic.pcap    -W    USonly.pcap    --country_code    US\n        decode    -d    country+followstream    traffic.pcap    --country_code    US    --country_notboth\n', filter='ip    or    ip6', author='twp', optiondict={'code': {'type': 'string', 'help': 'two-char    country    code'}, 'neither': {'action': 'store_true', 'help': 'neither    (client/server)    is    in    specified    country'}, 'both': {'action': 'store_true', 'help': 'both    (client/server)    ARE    in    specified    country'}, 'notboth': {'action': 'store_true', 'help': 'specified    country    is    not    both    client    and    server'}, 'alerts': {'action': 'store_true'}})
    'instantiate    an    decoder    that    will    call    back    to    us    once    the    IP    decoding    is    done'
    self.__decoder = dshell.IPDecoder()
    self.out = netflowout.NetflowOutput()
    self.chainable = True
