contrack and packets with error
Reading the conntrack code, i see that conntrack return NF_ACCEPT when a packet is erroneous (proto->error() returns -1), so the packet is ignored by conntrack but continues traversing the protocol stack.
The question is, why netfilter does not discard the packet?
regards,
diegows
Quoted 5 lines · Diego Woitasen
Reading the conntrack code, i see that conntrack return
NF_ACCEPTwhen a packet is erroneous (proto->error()returns -1), so the packet is ignored by conntrack but continues traversing the protocol stack.The question is, why netfilter does not discard the packet?
conntrack does tracking not filtering, packets are only dropped when it is necessary for accurate tracking. Otherwise the user can decide to drop the packet in his ruleset based on the information provided by conntrack.
Regards
Patrick