"cls in self" returns true if self has a layer which is an instance of cls.
(self, cls)
| 1411 | self[cls].underlayer.payload = val |
| 1412 | |
| 1413 | def __contains__(self, cls): |
| 1414 | # type: (Union[Type[Packet], str]) -> int |
| 1415 | """ |
| 1416 | "cls in self" returns true if self has a layer which is an |
| 1417 | instance of cls. |
| 1418 | """ |
| 1419 | return self.haslayer(cls) |
| 1420 | |
| 1421 | def route(self): |
| 1422 | # type: () -> Tuple[Optional[str], Optional[str], Optional[str]] |