mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-07 20:34:33 +00:00
lib, ospfd: Remove ospf specific #define from zebra.h
zebra.h should not know or care about ospf specific code Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
parent
bb374626bb
commit
166b75c259
20
lib/zebra.h
20
lib/zebra.h
@ -317,26 +317,6 @@ struct in_pktinfo
|
|||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
|
||||||
* OSPF Fragmentation / fragmented writes
|
|
||||||
*
|
|
||||||
* ospfd can support writing fragmented packets, for cases where
|
|
||||||
* kernel will not fragment IP_HDRINCL and/or multicast destined
|
|
||||||
* packets (ie TTBOMK all kernels, BSD, SunOS, Linux). However,
|
|
||||||
* SunOS, probably BSD too, clobber the user supplied IP ID and IP
|
|
||||||
* flags fields, hence user-space fragmentation will not work.
|
|
||||||
* Only Linux is known to leave IP header unmolested.
|
|
||||||
* Further, fragmentation really should be done the kernel, which already
|
|
||||||
* supports it, and which avoids nasty IP ID state problems.
|
|
||||||
*
|
|
||||||
* Fragmentation of OSPF packets can be required on networks with router
|
|
||||||
* with many many interfaces active in one area, or on networks with links
|
|
||||||
* with low MTUs.
|
|
||||||
*/
|
|
||||||
#ifdef GNU_LINUX
|
|
||||||
#define WANT_OSPF_WRITE_FRAGMENT
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* IP_HDRINCL / struct ip byte order
|
* IP_HDRINCL / struct ip byte order
|
||||||
*
|
*
|
||||||
|
@ -49,6 +49,26 @@
|
|||||||
#include "ospfd/ospf_flood.h"
|
#include "ospfd/ospf_flood.h"
|
||||||
#include "ospfd/ospf_dump.h"
|
#include "ospfd/ospf_dump.h"
|
||||||
|
|
||||||
|
/*
|
||||||
|
* OSPF Fragmentation / fragmented writes
|
||||||
|
*
|
||||||
|
* ospfd can support writing fragmented packets, for cases where
|
||||||
|
* kernel will not fragment IP_HDRINCL and/or multicast destined
|
||||||
|
* packets (ie TTBOMK all kernels, BSD, SunOS, Linux). However,
|
||||||
|
* SunOS, probably BSD too, clobber the user supplied IP ID and IP
|
||||||
|
* flags fields, hence user-space fragmentation will not work.
|
||||||
|
* Only Linux is known to leave IP header unmolested.
|
||||||
|
* Further, fragmentation really should be done the kernel, which already
|
||||||
|
* supports it, and which avoids nasty IP ID state problems.
|
||||||
|
*
|
||||||
|
* Fragmentation of OSPF packets can be required on networks with router
|
||||||
|
* with many many interfaces active in one area, or on networks with links
|
||||||
|
* with low MTUs.
|
||||||
|
*/
|
||||||
|
#ifdef GNU_LINUX
|
||||||
|
#define WANT_OSPF_WRITE_FRAGMENT
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Packet Type String. */
|
/* Packet Type String. */
|
||||||
const struct message ospf_packet_type_str[] =
|
const struct message ospf_packet_type_str[] =
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user