Skip to content

PTF agent on remote host is unable to receive messages larger than 4096 bytes #226

@senthil-nexthop

Description

@senthil-nexthop

The PTF agent on the remote host opens a raw socket to received packets from the PTF tester and the max size of packets it can receive on the socket is limited to 4096 bytes.

The recv() call in the agent has an upper bound of 4096, as seen here:

msg = afpacket.recv(self.socket, 4096)

                while True:
                    msg = afpacket.recv(self.socket, 4096)
                    self.received(msg)

This limits the ability to test jumbo packets which can be as big as 9216 bytes. Can the default be set to 9216 bytes?

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