diff options
author | gdt <gdt> | 2005-01-10 14:20:43 +0000 |
---|---|---|
committer | gdt <gdt> | 2005-01-10 14:20:43 +0000 |
commit | 86f1fd9615391485baf37afe1055b7d8bf64b4a8 (patch) | |
tree | 3a18671a9a94e952fabcb5ecca70c0bc80bcb523 /ospfd/ospf_packet.h | |
parent | 220d0c0ea3a3aab81836a6aad4137aa40270512d (diff) |
2005-01-10 Greg Troxel <gdt@fnord.ir.bbn.com>
* ospf_packet.h: Remove commented out definition of
OSPF_MAX_PACKET; neither it or the uncommented one are used any more.
* ospf_packet.c (ospf_make_ls_upd): Leave room for authentication
when deciding if an update will fit.
(ospf_packet_authspace): Factor out calculation of size required
for authentication.
(ospf_make_db_desc): Use ospf_max_packet, not OSPF_MAX_PACKET.
Don't confuse readers that there is a macro.
Diffstat (limited to 'ospfd/ospf_packet.h')
-rw-r--r-- | ospfd/ospf_packet.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/ospfd/ospf_packet.h b/ospfd/ospf_packet.h index 8de0bfbe..af9e634b 100644 --- a/ospfd/ospf_packet.h +++ b/ospfd/ospf_packet.h @@ -119,10 +119,8 @@ struct ospf_db_desc /* Macros. */ +/* XXX Perhaps obsolete; function in ospf_packet.c */ #define OSPF_PACKET_MAX(oi) ospf_packet_max (oi) -/* -#define OSPF_PACKET_MAX(oi) (((oi)->ifp->mtu - ((oi)->auth_md5 ? OSPF_AUTH_MD5_SIZE : 0)) - 88) -*/ #define OSPF_OUTPUT_PNT(S) ((S)->data + (S)->putp) #define OSPF_OUTPUT_LENGTH(S) ((S)->endp) |