diff options
Diffstat (limited to 'proto/rip/auth.c')
-rw-r--r-- | proto/rip/auth.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/proto/rip/auth.c b/proto/rip/auth.c index 994021e7..f1a3204e 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 ) { |