From 86f1fd9615391485baf37afe1055b7d8bf64b4a8 Mon Sep 17 00:00:00 2001 From: gdt Date: Mon, 10 Jan 2005 14:20:43 +0000 Subject: 2005-01-10 Greg Troxel * 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. --- ospfd/ospf_packet.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'ospfd/ospf_packet.h') 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) -- cgit v1.2.1