From e0e3597bea6b9c3c42c4e8326cfabacf3829cba9 Mon Sep 17 00:00:00 2001 From: rrs Date: Tue, 29 May 2007 14:17:47 +0000 Subject: Adds gcc attribute to prevent inlining of a function. If it goes inline we may well blow the stack if witness and such are enabled. --- sys/netinet/sctp_input.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'sys/netinet/sctp_input.c') diff --git a/sys/netinet/sctp_input.c b/sys/netinet/sctp_input.c index 935a90d..bf4b292 100644 --- a/sys/netinet/sctp_input.c +++ b/sys/netinet/sctp_input.c @@ -3435,11 +3435,14 @@ sctp_handle_packet_dropped(struct sctp_pktdrop_chunk *cp, * cookie-echo processing - return NULL to discard the packet (ie. no asoc, * bad packet,...) otherwise return the tcb for this packet */ -static struct sctp_tcb * -sctp_process_control(struct mbuf *m, int iphlen, int *offset, int length, - struct sctphdr *sh, struct sctp_chunkhdr *ch, struct sctp_inpcb *inp, - struct sctp_tcb *stcb, struct sctp_nets **netp, int *fwd_tsn_seen, - uint32_t vrf_id, uint32_t table_id) +#ifdef __GNUC__ +__attribute__((noinline)) +#endif + static struct sctp_tcb * + sctp_process_control(struct mbuf *m, int iphlen, int *offset, int length, + struct sctphdr *sh, struct sctp_chunkhdr *ch, struct sctp_inpcb *inp, + struct sctp_tcb *stcb, struct sctp_nets **netp, int *fwd_tsn_seen, + uint32_t vrf_id, uint32_t table_id) { struct sctp_association *asoc; uint32_t vtag_in; -- cgit v1.1