netlink.py 文件源码

python
阅读 26 收藏 0 点赞 0 评论 0

项目:pyikev2 作者: alejandro-perez 项目源码 文件源码
def _attribute_factory(code, data):
        class _Internal(NetlinkStructure):
            _fields_ = (
                ('len', c_uint16),
                ('code', c_uint16),
                ('data', type(data)),
            )

        return _Internal(code=code, len=sizeof(_Internal), data=data)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号