Home
last modified time | relevance | path

Searched refs:pay (Results 1 – 25 of 159) sorted by relevance

1234567

/external/scapy/scapy/contrib/
Dtacacs.py36 def obfuscate(pay, secret, session_id, version, seq): argument
51 while len(pad) < len(pay):
63 return b"".join(chb(orb(pad[i]) ^ orb(pay[i])) for i in range(len(pay)))
222 def guess_payload_class(self, pay): argument
246 def guess_payload_class(self, pay): argument
289 def guess_payload_class(self, pay): argument
335 def guess_payload_class(self, pay): argument
359 def post_dissect(self, pay): argument
362 pay = obfuscate(pay, SECRET, self.session_id, self.version, self.seq)
363 return pay
[all …]
Dldp.py272 def post_build(self, p, pay): argument
276 return p+pay
289 def post_build(self, p, pay): argument
293 return p+pay
306 def post_build(self, p, pay): argument
310 return p+pay
322 def post_build(self, p, pay): argument
326 return p+pay
340 def post_build(self, p, pay): argument
344 return p+pay
[all …]
Dbgp.py410 def post_build(self, p, pay): argument
413 if pay:
414 length = length + len(pay)
416 return p + pay
621 def post_build(self, p, pay): argument
628 return p + pay
727 def post_build(self, p, pay): argument
732 return p + pay
909 def post_build(self, p, pay): argument
923 return packet + pay
[all …]
Dmodbus.py299 def post_build(self, p, pay): argument
301 l = len(pay)
303 return p + pay
322 def post_build(self, p, pay): argument
324 l = len(pay)
326 return p + pay
361 def post_build(self, p, pay): argument
363 l = len(pay)
365 return p + pay
792 def post_build(self, p, pay): argument
[all …]
Dopenflow3.py71 def post_build(self, p, pay): argument
73 l = len(p)+len(pay)
75 return p + pay
641 def post_build(self, p, pay): argument
644 l = len(p)+len(pay)
649 return p + pay
692 def post_build(self, p, pay): argument
694 l = len(p)+len(pay)
696 return p + pay
908 def post_build(self, p, pay): argument
[all …]
Dopenflow.py133 def post_build(self, p, pay): argument
205 return p + pay
213 def post_build(self, p, pay): argument
215 l = len(p)+len(pay)
217 return p + pay
363 def post_build(self, p, pay): argument
365 l = len(p)+len(pay)
367 return p + pay
418 def post_build(self, p, pay): argument
422 l = len(p)+len(pay)
[all …]
Dicmp_extensions.py37 def post_build(self, p, pay): argument
39 l = len(p)+len(pay)
41 return p+pay
52 def post_build(self, p, pay): argument
56 return p+pay
Dvtp.py110 def post_build(self, p, pay): argument
122 p += pay
173 def post_build(self, p, pay): argument
178 p += pay
Dlldp.py146 def post_build(self, pkt, pay): argument
148 last_layer = not pay
163 return pkt + pay
166 return pkt + pay
174 return pkt + pay
177 frame_size += len(pkt) + len(pay) + LLDPDU.ETHER_FSC_LEN
179 return pkt + pay + b'\x00' * (LLDPDU.ETHER_FRAME_MIN_LEN - frame_size)
180 return pkt + pay
Dgsm_um.py2927 def post_build(self, p, pay): argument
2936 return p + pay
3508 def post_build(self, p, pay): argument
3515 return p + pay
3939 def post_build(self, p, pay): argument
3946 return p + pay
3989 def post_build(self, p, pay): argument
3998 return p + pay
4156 def post_build(self, p, pay): argument
4163 return p + pay
[all …]
Dospf.py76 def post_build(self, p, pay): argument
81 p += pay
160 def post_build(self, p, pay): argument
161 p += pay
193 def post_build(self, p, pay): argument
194 p += pay
276 def post_build(self, p, pay): argument
449 def post_build(self, p, pay): argument
450 p += pay
Deigrp.py224 def post_build(self, p, pay): argument
225 p += pay
244 def post_build(self, p, pay): argument
245 p += pay
476 def post_build(self, p, pay): argument
477 p += pay
Dcdp.py171 def post_build(self, pkt, pay): argument
175 p = pkt + pay
328 def post_build(self, pkt, pay): argument
329 p = pkt + pay
Drsvp.py42 def post_build(self, p, pay): argument
43 p += pay
Digmp.py66 def post_build(self, p, pay): argument
74 p += pay
/external/scapy/scapy/layers/
Dppp.py35 def post_build(self, p, pay): argument
36 p += pay
249 def extract_padding(self, pay): argument
250 return b"",pay
317 def extract_padding(self, pay): argument
318 return b"",pay
373 def extract_padding(self, pay): argument
374 return b"", pay
414 def extract_padding(self, pay): argument
415 return b"", pay
[all …]
Ddot11.py314 def encrypt(self, p, pay, key=None): argument
319 pay += struct.pack("<I", crc32(pay) & 0xffffffff)
328 return p[:4] + e.update(pay) + e.finalize() + icv
333 def post_build(self, p, pay): argument
335 p = self.encrypt(p, raw(pay))
417 pay = raw(tcp.payload)
418 if not self.ptrn.match(pay):
420 if self.iptrn.match(pay) == True:
427 pay = raw(tcp.payload)
433 seq=tcp.ack, ack=tcp.seq+len(pay),
Dl2tp.py41 def post_build(self, pkt, pay): argument
43 l = len(pkt)+len(pay)
45 return pkt+pay
Dhsrp.py74 def post_build(self, p, pay): argument
75 if self.len is None and pay:
76 l = len(pay)
Dbluetooth.py102 def post_build(self, p, pay): argument
103 p += pay
105 p = p[:2] + struct.pack("<H", len(pay)) + p[4:]
117 def post_build(self, p, pay): argument
118 p += pay
120 p = struct.pack("<H", len(pay)) + p[2:]
135 def post_build(self, p, pay): argument
136 p += pay
138 p = p[:2] + struct.pack("<H", len(pay)) + p[4:]
503 def post_build(self, p, pay): argument
[all …]
Dlltd.py92 def post_build(self, pkt, pay): argument
102 return pkt + pay
213 def post_build(self, pkt, pay): argument
220 return pkt + pay
255 def post_build(self, pkt, pay): argument
262 return pkt + pay
Disakmp.py205 def post_build(self, p, pay): argument
206 p += pay
233 def post_build(self, p, pay): argument
237 p += pay
Dvrrp.py36 def post_build(self, p, pay): argument
66 def post_build(self, p, pay): argument
/external/scapy/scapy/layers/tls/
Dkeyexchange_tls13.py83 def post_build(self, pkt, pay): argument
98 return group + kxlen + self.key_exchange + pay
137 def post_build(self, pkt, pay): argument
147 return super(TLS_Ext_KeyShare_CH, self).post_build(pkt, pay)
175 def post_build(self, pkt, pay): argument
196 return super(TLS_Ext_KeyShare_SH, self).post_build(pkt, pay)
/external/linux-kselftest/tools/testing/selftests/net/
Dpsock_tpacket.c141 static void test_payload(void *pay, size_t len) in test_payload() argument
143 struct ethhdr *eth = pay; in test_payload()
158 static void create_payload(void *pay, size_t *len) in create_payload() argument
161 struct ethhdr *eth = pay; in create_payload()
162 struct iphdr *ip = pay + sizeof(*eth); in create_payload()
170 memset(pay, 0xff, ETH_ALEN * 2); in create_payload()
174 ((uint8_t *) pay)[i + sizeof(*eth)] = (uint8_t) rand(); in create_payload()
186 memset(pay + sizeof(*eth) + sizeof(*ip), in create_payload()

1234567