42 std::uint16_t u16DstPort) :
45 u16SrcPort_{u16SrcPort},
46 u16DstPort_{u16DstPort}
48 if((u16SrcPort_ == 0) && (u16DstPort_ == 0))
63 std::uint16_t u16Type)
86 if(u16SrcPort_ && (pHdr->u16Udpsrc != u16SrcPort_))
91 if(u16DstPort_ && (pHdr->u16Udpdst != u16DstPort_))
const std::uint16_t UDP_HEADER_LEN
udp header len
const std::uint8_t IP_PROTO_UDP
ip udp protocol
bool match(const void *buf, std::size_t len, std::uint16_t u16Type) override
IPProtocolUDPRule(std::uint16_t u16SrcPort, std::uint16_t u16DstPort)