[En-Nut-Discussion] incoming broadcast IP packets filtration

Александр Усов aleksander.usov at gmail.com
Tue Jun 9 14:41:18 CEST 2009


Sorry for my bad English. If I understood rfc919 right, there are two types
of broadcasts: "local" which is and "remote" which is, for
example, when is subnet address. But NutIpInput()
function sets up "bcast" flag even if the destination broadcast IP address
is from another subnet.

Maybe, checking like this:
   dst == ( nif->if_local_ip | ~nif->if_mask )
is more correct than
   ( dst | nif->if_mask ) == INADDR_BROADCAST

Thanks for your attention.

More information about the En-Nut-Discussion mailing list