/external/scapy/scapy/contrib/ |
D | tacacs.py | 36 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 …]
|
D | ldp.py | 272 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 …]
|
D | bgp.py | 410 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 …]
|
D | modbus.py | 299 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 …]
|
D | openflow3.py | 71 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 …]
|
D | openflow.py | 133 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 …]
|
D | icmp_extensions.py | 37 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
|
D | vtp.py | 110 def post_build(self, p, pay): argument 122 p += pay 173 def post_build(self, p, pay): argument 178 p += pay
|
D | lldp.py | 146 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
|
D | gsm_um.py | 2927 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 …]
|
D | ospf.py | 76 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
|
D | eigrp.py | 224 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
|
D | cdp.py | 171 def post_build(self, pkt, pay): argument 175 p = pkt + pay 328 def post_build(self, pkt, pay): argument 329 p = pkt + pay
|
D | rsvp.py | 42 def post_build(self, p, pay): argument 43 p += pay
|
D | igmp.py | 66 def post_build(self, p, pay): argument 74 p += pay
|
/external/scapy/scapy/layers/ |
D | ppp.py | 35 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 …]
|
D | dot11.py | 314 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),
|
D | l2tp.py | 41 def post_build(self, pkt, pay): argument 43 l = len(pkt)+len(pay) 45 return pkt+pay
|
D | hsrp.py | 74 def post_build(self, p, pay): argument 75 if self.len is None and pay: 76 l = len(pay)
|
D | bluetooth.py | 102 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 …]
|
D | lltd.py | 92 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
|
D | isakmp.py | 205 def post_build(self, p, pay): argument 206 p += pay 233 def post_build(self, p, pay): argument 237 p += pay
|
D | vrrp.py | 36 def post_build(self, p, pay): argument 66 def post_build(self, p, pay): argument
|
/external/scapy/scapy/layers/tls/ |
D | keyexchange_tls13.py | 83 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/ |
D | psock_tpacket.c | 141 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()
|