관리-도구
편집 파일: genetlink.cpython-36.pyc
3 B��Q� � @ s� d Z ddlZddlmZmZmZmZ ddlmZmZm Z dZ dZdZdZ dZd Zd ZdZdZdZdZdZd Zd ZG dd� d�Zd d� ZeZG dd� de�ZG dd� d�Zee �Zee�ZdS )z� Netlink message generation/parsing Copyright 2007 Johannes Berg <johannes@sipsolutions.net> GPLv2+; See copying for details. � N)� NLM_F_REQUEST�NLMSG_MIN_TYPE�Message�parse_attributes)� NulStrAttr� Connection�NETLINK_GENERIC� � � � � � c @ s e Zd Zddd�Zdd� ZdS )�GenlHdrr c C s || _ || _d S )N)�cmd�version)�selfr r � r �/usr/lib/python3.6/genetlink.py�__init__ s zGenlHdr.__init__c C s t jd| j| j�S )N�BBxx)�struct�packr r )r r r r �_dump! s z GenlHdr._dumpN)r )�__name__� __module__�__qualname__r r r r r r r s r c C s t tjd| �� S )Nr )r r �unpack)�datar r r �_genl_hdr_parse$ s r c @ s&