TUN-8641: Expose methods to simplify V3 Datagram parsing on the edge

This commit is contained in:
Gonçalo Garcia
2024-11-04 15:23:36 -08:00
parent 589c198d2d
commit 3d33f559b1
5 changed files with 37 additions and 11 deletions

View File

@@ -122,7 +122,7 @@ func (c *datagramConn) Serve(ctx context.Context) error {
// Each incoming datagram will be processed in a new go routine to handle the demuxing and action associated.
go func() {
typ, err := parseDatagramType(datagram)
typ, err := ParseDatagramType(datagram)
if err != nil {
c.logger.Err(err).Msgf("unable to parse datagram type: %d", typ)
return