Skip to content

Why does this code ignore the data length returned #205

@SunHui2980

Description

@SunHui2980

dataCount, oobCount, flags, _, err = syscall.Recvmsg(fd, b, oobBuffer, 0)

why dose this code ignore the dataCount from syscall.Recvmsg here, since the ORAN standard some messages have the indefinite length?

Is it OK that it discards the dataCount and creates a fixed length buffer in onos-e2t at the same time ?

https://github.com/onosproject/onos-e2t/blob/9ef17c884e94786226d4004ca0f7325b9cf11fc1/pkg/protocols/e2ap/conn.go#L20

https://github.com/onosproject/onos-e2t/blob/9ef17c884e94786226d4004ca0f7325b9cf11fc1/pkg/protocols/e2ap/conn.go#L155

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions