OS class have multiple values
vdjagilev opened this issue · comments
osclass
have multiple values (from radialnet example nmap xml file):
<osclass type="general purpose" vendor="Linux" osfamily="Linux" osgen="2.6.X" accuracy="91" />
<osclass type="security-misc" vendor="Aladdin" osfamily="Linux" osgen="2.4.X" accuracy="88" />
<osclass type="general purpose" vendor="Linux" osfamily="Linux" osgen="2.4.X" accuracy="87" />
<osclass type="switch" vendor="QLogic" osfamily="embedded" accuracy="87" />
<osclass type="PDA" vendor="Sharp" osfamily="Linux" osgen="2.4.X" accuracy="87" />
<osclass type="VoIP gateway" vendor="Tandberg" osfamily="Linux" osgen="2.6.X" accuracy="87" />
<osclass type="WAP" vendor="Siemens" osfamily="Linux" accuracy="87" />
<osclass type="server appliance" vendor="Toshiba" osfamily="Linux" osgen="2.4.X" accuracy="87" />
<osclass type="VoIP gateway" vendor="Occam" osfamily="embedded" accuracy="86" />
<osclass type="WAP" vendor="FON" osfamily="Linux" osgen="2.4.X" accuracy="86" />
Now OS struct have to have OSClass
as []OSClass
, which is a BC-break
// OS describes all information about underlying operating system that this host operates
type OS struct {
OSPortUsed []OSPortUsed `xml:"portused"`
OSClass []OSClass `xml:"osclass"` // <--- []
OSMatch []OSMatch `xml:"osmatch"`
}
This would require changes in all formats and the way they display data