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

Method addfield

scapy/layers/inet6.py:2168–2169  ·  view source on GitHub ↗
(self, pkt, s, val)

Source from the content-addressed store, hash-verified

2166
2167class _PREF64(IP6Field):
2168 def addfield(self, pkt, s, val):
2169 return s + self.i2m(pkt, val)[:12]
2170
2171 def getfield(self, pkt, s):
2172 return s[12:], self.m2i(pkt, s[:12] + b"\x00" * 4)

Callers 2

self_buildMethod · 0.45
_lenFunction · 0.45

Calls 1

i2mMethod · 0.45

Tested by

no test coverage detected