MATLAB: Filtering traffic belonging to particular subnets (title may be misguiding)

subnetunique

say we have a cell array of nx1 strings, i.e ip addresses.something like
'69.35.34.28' '89.23.180.34' '69.35.24.10' '123.35.82.12' '129.24.78.24' '89.23.193.12'
i have to uniquely filter out each subnet like
'69.35.xxx.xxx' – 2 occurences '89.23.xxx.xxx' – 2 occurences '123.35.xxx.xxx' – 1 occurence '129.24.xxx.xxx' – 1 occurence
the input is taken from a text or xls file. solutions ??

Best Answer

You cannot do this without knowing where the subnet boundaries are.
Yes, you could use the obsolete "Class A", "Class B" definitions, but if you do that then 129.24.78.24 is Class C and would imply a subnet of 129.24.78.x rather than 129.24.x.x
Your entire series of questions on subneting and packet filtering would have gone much more smoothly if you had adopted CIDR early on.