Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Copy link
Copy link
@yuch5517

Description

@yuch5517
Issue body actions

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
Reactions are currently unavailable

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

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.