Function ska::pst::recv::udp_from_ethernet
Defined in File PacketUtils.h
Function Documentation
-
PacketBuffer ska::pst::recv::udp_from_ethernet(char *ptr, size_t size)
Return PacketBuffer corresponding to the UDP payload of the provided pointer. Constructs an EthernetFrame from ptr and if the contents contain a valid UDP packet, returns a PacketBuffer representation of that UDP payload.
- Parameters
ptr – pointer to a raw ethernet frame
size – size of the pointer
- Returns
PacketBuffer UDP payload of the EthernetFrame