Traduction des commentaires en anglais,

Modification de la signature des deux fonctions
This commit is contained in:
n07070 committed 2020-04-01 17:56:17 +02:00
1 parent b7478364ab
commit e1276448f1
2 files changed
+8 -3

No files matched your search

+5
View File
@@ -45,6 +45,11 @@ neighbour_peer *get_random_neighbour() {
/* ---- Fin fonctions utilitaires ---- */
// This function
int send_tlv(struct tlv, struct sockaddr_in6 * sender_list[], int sender_list_size){
}
// We need to make sure the TLV announces a length that will no go onto
// another tlv, as we might end up reading bullshit.
int validate_tlv(char *data, int pos, short packet_len){
+3 -3
View File
@@ -77,18 +77,18 @@ void add_tlv(packet *packet, tlv *tlv, char type);
int send_packet();
/* Prend un tlv, et construit un paquet pour ensuite l'envoyer à la liste
/* Takes a TLV and sends it over to everyone in the list of addresses.
* des paires.
* Retourne -1 en cas d'échec, 0 en cas de succès.
*/
int send_tlv(struct tlv, struct sockaddr_in6 * sender_list[], int sender_list_size);
int send_tlv(struct tlv tlv_to_send, int tlv_type, struct sockaddr_in6 * dest_list[], int dest_list_size);
/* Prend une liste de tlv, et construit un paquet pour ensuite les envoyer à la liste
* des paires. Chaque pair recevera la même liste de TLV.
* Retourne -1 en cas d'échec, 0 en cas de succès.
*/
int send_tlvs(struct list * tlv_list, struct sockaddr_in6 * sender_list[], int sender_list_size);
int send_tlvs(struct list * tlv_list, int tlv_type, struct sockaddr_in6 * dest_list[], int dest_list_size);
// threaded functions
void t_ask_for_more_peers();