Thanks to visit codestin.com
Credit goes to github.com

Skip to content

ffi.error: struct tr_tcp_config: wrong total size (cdef says 24, but C compiler says 48). #17

@yuch5517

Description

@yuch5517

When I was using the python-binding, I tried using RTRManager. However, the following error occurred. Could it be due to an update in the rtrlib code that this repository has not yet updated?

Traceback (most recent call last):
  File "rtr_receiver.py", line 41, in <module>
    main()
  File "rtr_receiver.py", line 37, in main
    start_rtr_receiver(rtr_host, rtr_port)
  File "rtr_receiver.py", line 11, in start_rtr_receiver
    manager = RTRManager(rtr_host, rtr_port,pfx_update_callback=callback)
  File "/usr/local/lib/python3.8/dist-packages/rtrlib-0.1-py3.8-linux-x86_64.egg/rtrlib/rtr_manager.py", line 138, in __init__
    self.tcp_config = ffi.new('struct tr_tcp_config *')
ffi.error: struct tr_tcp_config: wrong total size (cdef says 24, but C compiler says 48). fix it or use "...;" as the last field in the cdef for struct tr_tcp_config to make it flexible

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions