MCPcopy Index your code
hub / github.com/secdev/scapy / command

Method command

scapy/packet.py:1781–1794  ·  view source on GitHub ↗

Returns a string representing the command you have to type to obtain the same packet

(self)

Source from the content-addressed store, hash-verified

1779 return f
1780
1781 def command(self):
1782 # type: () -> str
1783 """
1784 Returns a string representing the command you have to type to
1785 obtain the same packet
1786 """
1787 c = "%s(%s)" % (
1788 self.__class__.__name__,
1789 ", ".join("%s=%s" % x for x in self._command())
1790 )
1791 pc = self.payload.command()
1792 if pc:
1793 c += "/" + pc
1794 return c
1795
1796 def json(self):
1797 # type: () -> str

Callers 1

_commandMethod · 0.45

Calls 2

_commandMethod · 0.95
joinMethod · 0.80

Tested by

no test coverage detected