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

Function split_layers

scapy/packet.py:2160–2177  ·  view source on GitHub ↗

Split 2 layers previously bound. This call un-links calls bind_top_down and bind_bottom_up. It is the opposite of # noqa: E501 bind_layers. Please have a look at their docs: - help(split_bottom_up) - help(split_top_down)

(lower,  # type: Type[Packet]
                 upper,  # type: Type[Packet]
                 __fval=None,  # type: Optional[Any]
                 **fval  # type: Any
                 )

Source from the content-addressed store, hash-verified

2158
2159@conf.commands.register
2160def split_layers(lower, # type: Type[Packet]
2161 upper, # type: Type[Packet]
2162 __fval=None, # type: Optional[Any]
2163 **fval # type: Any
2164 ):
2165 # type: (...) -> None
2166 """Split 2 layers previously bound.
2167 This call un-links calls bind_top_down and bind_bottom_up. It is the opposite of # noqa: E501
2168 bind_layers.
2169
2170 Please have a look at their docs:
2171 - help(split_bottom_up)
2172 - help(split_top_down)
2173 """
2174 if __fval is not None:
2175 fval.update(__fval)
2176 split_bottom_up(lower, upper, **fval)
2177 split_top_down(lower, upper, **fval)
2178
2179
2180@conf.commands.register

Callers 2

carp.pyFile · 0.90
gxrp.pyFile · 0.90

Calls 3

split_bottom_upFunction · 0.85
split_top_downFunction · 0.85
updateMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…