Skip to content

ofp_sendto should return the number of bytes sent #250

Open

Description

@gabeblack

It appears that ofp_send/sendto returns 0 if the packet is sent. This diverges from the normal socket send/sendto calls in that they return the number of bytes sent. Not sure if that is intentional or not as the apis don't seem to be documented as to what they supposed to return. However, given that there is netwrap stuff, it seems like it is intended to mimic the same api.

Activity

  1. bogdanPricope commented on May 17, 2020

    @bogdanPricope
    Contributor

    Hi,
    I guess it was a UDP socket. Take a look at PR#251 ("udp: fix ofp_send/ofp_sendto return value on success").

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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