summaryrefslogtreecommitdiffstats
path: root/proto/rip/auth.c
diff options
context:
space:
mode:
authorPavel Machek <pavel@ucw.cz>2000-06-05 14:52:57 +0200
committerPavel Machek <pavel@ucw.cz>2000-06-05 14:52:57 +0200
commitb093c328f5b352e3d059cb14cceed1e4daa1b9dc (patch)
tree0617c286b58e55d39506eaa8ee2552caa03c5cb2 /proto/rip/auth.c
parent73275d855dcc8a184bc19f3750c8775a59111260 (diff)
downloadbird-b093c328f5b352e3d059cb14cceed1e4daa1b9dc.tar
bird-b093c328f5b352e3d059cb14cceed1e4daa1b9dc.zip
Updates to both programmers and users doc
Diffstat (limited to 'proto/rip/auth.c')
-rw-r--r--proto/rip/auth.c8
1 files changed, 7 insertions, 1 deletions
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 )
{