f-75: e2e: 33-bridge vérifie le confinement de interface_ip entre deux hôtes, attente de cloud-init dans 23 et 27 #75

Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
GnomeZworc 2026-10-23 10:28:11 +02:00
commit 827d9599ef
Signed by: nicolas.boufideline
GPG key ID: 4406BBBF8845D632
6 changed files with 70 additions and 6 deletions

View file

@ -124,6 +124,8 @@ def match(kind, a, f):
t = f[12:14]
if kind == 'arp-req':
return t == b'\x08\x06' and f[20:22] == b'\x00\x01' and f[38:42] == ipb(a[0])
if kind == 'arp-from':
return t == b'\x08\x06' and f[28:32] == ipb(a[0])
if kind == 'udp-from':
return t == b'\x08\x00' and f[23] == 17 and f[26:30] == ipb(a[0]) and struct.unpack('!H', f[34:36])[0] == int(a[1])
if kind == 'marker':