id_match
bool (*id_match)(struct packet_type *ptype,
bool id_match;
id_match = (uid_eq(cred->uid, tcred->euid) &&
if (!id_match && !ns_capable(tcred->user_ns, CAP_SYS_RESOURCE))
if (ptype->id_match)
return ptype->id_match(ptype, skb->sk);
id_match(fraginfo->ids[0], fraginfo->ids[1],
return id_match(fraginfo->ids[0], fraginfo->ids[1],
bool id_match = false;
id_match = (e->addr.id == entry->addr.id);
if (addr_match || id_match)
if (!addr_match && !id_match) {
} else if (addr_match && id_match) {
match->prot_hook.id_match = match_fanout_group;