From 6edc218ea191735b4dddff1f31cc868fa69f0037 Mon Sep 17 00:00:00 2001 From: Kip Macy Date: Sun, 27 Jan 2008 04:39:38 +0000 Subject: [PATCH] Fix loading for case where we don't overload tcp_usrreqs by calling tcp_drop directly --- sys/dev/cxgb/ulp/tom/cxgb_tcp.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sys/dev/cxgb/ulp/tom/cxgb_tcp.h b/sys/dev/cxgb/ulp/tom/cxgb_tcp.h index feb29164ed4f..3042ef00b0f1 100644 --- a/sys/dev/cxgb/ulp/tom/cxgb_tcp.h +++ b/sys/dev/cxgb/ulp/tom/cxgb_tcp.h @@ -29,8 +29,11 @@ */ #ifndef CXGB_TCP_H_ #define CXGB_TCP_H_ - +#ifdef TCP_USRREQS_OVERLOAD struct tcpcb *cxgb_tcp_drop(struct tcpcb *tp, int errno); +#else +#define cxgb_tcp_drop tcp_drop +#endif void cxgb_tcp_ctlinput(int cmd, struct sockaddr *sa, void *vip); struct tcpcb *cxgb_tcp_close(struct tcpcb *tp);