$59 GRAYBYTE WORDPRESS FILE MANAGER $70

SERVER : in-mum-web1330.main-hosting.eu #1 SMP Mon Feb 10 22:45:17 UTC 2025
SERVER IP : 88.222.243.229 | ADMIN IP 216.73.216.63
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/opt/alt/python311/lib/python3.11/site-packages/pyroute2/netlink/rtnl/

HOME
Current File : /opt/alt/python311/lib/python3.11/site-packages/pyroute2/netlink/rtnl//fibmsg.py
from pyroute2.common import map_namespace
from pyroute2.netlink import nla, nlmsg

FR_ACT_UNSPEC = 0
FR_ACT_TO_TBL = 1
FR_ACT_GOTO = 2
FR_ACT_NOP = 3
FR_ACT_BLACKHOLE = 6
FR_ACT_UNREACHABLE = 7
FR_ACT_PROHIBIT = 8
(FR_ACT_NAMES, FR_ACT_VALUES) = map_namespace('FR_ACT', globals())


class fibmsg(nlmsg):
    '''
    IP rule message

    C structure::

        struct fib_rule_hdr {
            __u8        family;
            __u8        dst_len;
            __u8        src_len;
            __u8        tos;
            __u8        table;
            __u8        res1;   /* reserved */
            __u8        res2;   /* reserved */
            __u8        action;
            __u32       flags;
        };
    '''

    prefix = 'FRA_'

    fields = (
        ('family', 'B'),
        ('dst_len', 'B'),
        ('src_len', 'B'),
        ('tos', 'B'),
        ('table', 'B'),
        ('res1', 'B'),
        ('res2', 'B'),
        ('action', 'B'),
        ('flags', 'I'),
    )

    # fibmsg NLA numbers are not sequential, so
    # give them here explicitly
    nla_map = (
        (0, 'FRA_UNSPEC', 'none'),
        (1, 'FRA_DST', 'ipaddr'),
        (2, 'FRA_SRC', 'ipaddr'),
        (3, 'FRA_IIFNAME', 'asciiz'),
        (4, 'FRA_GOTO', 'uint32'),
        (6, 'FRA_PRIORITY', 'uint32'),
        (10, 'FRA_FWMARK', 'uint32'),
        (11, 'FRA_FLOW', 'uint32'),
        (12, 'FRA_TUN_ID', 'be64'),
        (13, 'FRA_SUPPRESS_IFGROUP', 'uint32'),
        (14, 'FRA_SUPPRESS_PREFIXLEN', 'uint32'),
        (15, 'FRA_TABLE', 'uint32'),
        (16, 'FRA_FWMASK', 'uint32'),
        (17, 'FRA_OIFNAME', 'asciiz'),
        (18, 'FRA_PAD', 'hex'),
        (19, 'FRA_L3MDEV', 'uint8'),
        (20, 'FRA_UID_RANGE', 'uid_range'),
        (21, 'FRA_PROTOCOL', 'uint8'),
        (22, 'FRA_IP_PROTO', 'uint8'),
        (23, 'FRA_SPORT_RANGE', 'port_range'),
        (24, 'FRA_DPORT_RANGE', 'port_range'),
    )

    class fra_range(nla):
        __slots__ = ()
        sql_type = 'TEXT'

        def encode(self):
            self['start'], self['end'] = [
                int(x) for x in self.value.split(':')
            ]
            nla.encode(self)

        def decode(self):
            nla.decode(self)
            self.value = '%s:%s' % (self['start'], self['end'])

    class uid_range(fra_range):
        fields = (('start', 'I'), ('end', 'I'))

    class port_range(fra_range):
        fields = (('start', 'H'), ('end', 'H'))

Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
8 May 2024 6.33 PM
root / root
0755
__pycache__
--
8 May 2024 6.33 PM
root / root
0755
ifinfmsg
--
8 May 2024 6.33 PM
root / root
0755
tcmsg
--
8 May 2024 6.33 PM
root / root
0755
__init__.py
5.849 KB
8 May 2024 6.33 PM
root / root
0644
errmsg.py
0.151 KB
8 May 2024 6.33 PM
root / root
0644
fibmsg.py
2.371 KB
8 May 2024 6.33 PM
root / root
0644
ifaddrmsg.py
2.733 KB
8 May 2024 6.33 PM
root / root
0644
ifstatsmsg.py
2.522 KB
8 May 2024 6.33 PM
root / root
0644
iprsocket.py
5.666 KB
8 May 2024 6.33 PM
root / root
0644
iw_event.py
3.168 KB
8 May 2024 6.33 PM
root / root
0644
marshal.py
1.971 KB
8 May 2024 6.33 PM
root / root
0644
ndmsg.py
2.546 KB
8 May 2024 6.33 PM
root / root
0644
ndtmsg.py
2.137 KB
8 May 2024 6.33 PM
root / root
0644
nsidmsg.py
0.313 KB
8 May 2024 6.33 PM
root / root
0644
nsinfmsg.py
0.51 KB
8 May 2024 6.33 PM
root / root
0644
p2pmsg.py
0.357 KB
8 May 2024 6.33 PM
root / root
0644
riprsocket.py
0.511 KB
8 May 2024 6.33 PM
root / root
0644
rtgenmsg.py
0.111 KB
8 May 2024 6.33 PM
root / root
0644
rtmsg.py
25.467 KB
8 May 2024 6.33 PM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF