convert_and_verify_cbpf

Function convert_and_verify_cbpf 

Source
pub fn convert_and_verify_cbpf(
    bpf_code: &[sock_filter],
    packet_type: Type,
    config: &CbpfConfig,
) -> Result<VerifiedEbpfProgram, EbpfError>
Expand description

Instantiates an EbpfProgram given a cbpf original that will work with a packet of the specified type.