diff options
author | gdt <gdt> | 2005-01-10 14:20:43 +0000 |
---|---|---|
committer | gdt <gdt> | 2005-01-10 14:20:43 +0000 |
commit | 9c3b6169c50c6532b99fb327aa37ba88b59ac3a9 (patch) | |
tree | d4c97426520da13e3f10589f27e69d6645fff172 /ospfd/ospf_packet.h | |
parent | 7fc9343b4901154fdd658159500d9cd469326af3 (diff) | |
download | quagga-9c3b6169c50c6532b99fb327aa37ba88b59ac3a9.tar.bz2 quagga-9c3b6169c50c6532b99fb327aa37ba88b59ac3a9.tar.xz |
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) |