diff options
author | Pavel Machek <pavel@ucw.cz> | 2000-06-05 12:52:57 +0000 |
---|---|---|
committer | Pavel Machek <pavel@ucw.cz> | 2000-06-05 12:52:57 +0000 |
commit | b093c328f5b352e3d059cb14cceed1e4daa1b9dc (patch) | |
tree | 0617c286b58e55d39506eaa8ee2552caa03c5cb2 /proto/rip/auth.c | |
parent | 73275d855dcc8a184bc19f3750c8775a59111260 (diff) |
Updates to both programmers and users doc
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 ) { |