From b093c328f5b352e3d059cb14cceed1e4daa1b9dc Mon Sep 17 00:00:00 2001 From: Pavel Machek Date: Mon, 5 Jun 2000 12:52:57 +0000 Subject: Updates to both programmers and users doc --- proto/rip/auth.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'proto/rip/auth.c') diff --git a/proto/rip/auth.c b/proto/rip/auth.c index 994021e..f1a3204 100644 --- a/proto/rip/auth.c +++ b/proto/rip/auth.c @@ -26,7 +26,9 @@ #define PACKETLEN(num) (num * sizeof(struct rip_block) + sizeof(struct rip_packet_heading)) -/* 1 == failed, 0 == ok */ +/** + * rip_incoming_authentication - check authentication of incomming packet and return 1 if there's problem. + */ int rip_incoming_authentication( struct proto *p, struct rip_block_auth *block, struct rip_packet *packet, int num, ip_addr whotoldme ) { @@ -108,6 +110,10 @@ rip_incoming_authentication( struct proto *p, struct rip_block_auth *block, stru return 0; } +/** + * rip_outgoing_authentication - append authentication information to the packet. + * %num: number of rip_blocks already in packets. This function returns size of packet to send. + */ int rip_outgoing_authentication( struct proto *p, struct rip_block_auth *block, struct rip_packet *packet, int num ) { -- cgit v1.2.3