From 48db4bfb6c05e1852323bb4bb87732d57257a565 Mon Sep 17 00:00:00 2001 From: switch_st Date: Tue, 7 Jul 2020 11:03:13 +0800 Subject: [PATCH] add extra comment to n2n_edge_callbacks --- include/n2n.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/n2n.h b/include/n2n.h index 88af2a5..c9bca16 100644 --- a/include/n2n.h +++ b/include/n2n.h @@ -233,11 +233,13 @@ typedef struct n2n_edge_callbacks { void (*sn_registration_updated)(n2n_edge_t *eee, time_t now, const n2n_sock_t *sn); /* A packet has been received from a peer. N2N_DROP can be returned to - * drop the packet. The packet payload can be modified. */ + * drop the packet. The packet payload can be modified. This only allows + * the packet size to be reduced */ n2n_verdict (*packet_from_peer)(n2n_edge_t *eee, const n2n_sock_t *peer, uint8_t *payload, uint16_t *payload_size); /* A packet has been received from the TAP interface. N2N_DROP can be - * returned to drop the packet. The packet payload can be modified. */ + * returned to drop the packet. The packet payload can be modified. + * This only allows the packet size to be reduced */ n2n_verdict (*packet_from_tap)(n2n_edge_t *eee, uint8_t *payload, uint16_t *payload_size); /* Called whenever the IP address of the TAP interface changes. */