Skip to content

Commit

Permalink
ping
Browse files Browse the repository at this point in the history
  • Loading branch information
Laurent committed Dec 11, 2024
1 parent baf701c commit b34258d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions examples/QUIC/gw_moon.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,14 @@ def processPkt(pkt):
e_type = pkt.getlayer(Ether).type
if e_type == 0x86dd:
print ("*")
schc_machine.schc_send(bytes(pkt)[14:])
schc_machine.schc_send(bytes(pkt)[14:], verbose=True)
elif e_type == 0x0800:
print ('.', end="")
if pkt[IP].proto == 17 and pkt[UDP].sport == 0x5C4C:
# got a packet in the socket
SCHC_pkt, device = tunnel.recvfrom(1000)
print ('-', end="")



origin, full_packet = schc_machine.schc_recv(
schc_packet=SCHC_pkt,
device_id=deviceID,
Expand Down

0 comments on commit b34258d

Please sign in to comment.