|
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
onos-lib-go/pkg/sctp/connection/socket.go
Line 149 in 689b0f0
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