diff --git a/backend/src/network_sniffer.py b/backend/src/network_sniffer.py index 174ad48..fc79d30 100644 --- a/backend/src/network_sniffer.py +++ b/backend/src/network_sniffer.py @@ -69,16 +69,16 @@ async def db_insert_packet(pkt_info: dict): conn = await asyncpg.connect(DB_DSN) await conn.execute(""" INSERT INTO packets( - interface, + iface, direction, src_mac, dst_mac, eth_type, src_ip, dst_ip, - ip_protocol, - packet_len, - nft_verdict, + protocol, + length, + ebpf_verdict, raw_packet ) VALUES($1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$11) """,