MCPcopy Create free account
hub / github.com/secdev/scapy / NBNSNodeStatusResponseService

Class NBNSNodeStatusResponseService

scapy/layers/netbios.py:239–253  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

237# RFC1002 sect 4.2.18
238
239class NBNSNodeStatusResponseService(Packet):
240 name = "NBNS Node Status Response Service"
241 fields_desc = [StrFixedLenField("NETBIOS_NAME", "WINDOWS ", 15),
242 ByteEnumField("SUFFIX", 0, {0: "workstation",
243 0x03: "messenger service",
244 0x20: "file server service",
245 0x1b: "domain master browser",
246 0x1c: "domain controller",
247 0x1e: "browser election service"
248 }),
249 ByteField("NAME_FLAGS", 0x4),
250 ByteEnumField("UNUSED", 0, {0: "unused"})]
251
252 def default_payload_class(self, payload):
253 return conf.padding_layer
254
255
256class NBNSNodeStatusResponse(Packet):

Callers 1

Calls 3

StrFixedLenFieldClass · 0.90
ByteEnumFieldClass · 0.90
ByteFieldClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…