summaryrefslogtreecommitdiffstats
path: root/sys/netinet/sctp_os_bsd.h
diff options
context:
space:
mode:
authortuexen <tuexen@FreeBSD.org>2012-06-28 16:01:08 +0000
committertuexen <tuexen@FreeBSD.org>2012-06-28 16:01:08 +0000
commitd2f6540a5c0fdb316dfcf20d06919bc46746ce1d (patch)
tree0712df9c2d50839440d8ad4fdcb4b1427c4a4fe8 /sys/netinet/sctp_os_bsd.h
parent2bb5abedc990575f567f541761a02207fdaf1829 (diff)
downloadFreeBSD-src-d2f6540a5c0fdb316dfcf20d06919bc46746ce1d.zip
FreeBSD-src-d2f6540a5c0fdb316dfcf20d06919bc46746ce1d.tar.gz
Pass the src and dst address of a received packet explicitly around.
MFC after: 3 days
Diffstat (limited to 'sys/netinet/sctp_os_bsd.h')
-rw-r--r--sys/netinet/sctp_os_bsd.h13
1 files changed, 0 insertions, 13 deletions
diff --git a/sys/netinet/sctp_os_bsd.h b/sys/netinet/sctp_os_bsd.h
index 861c76e..9cb77b6 100644
--- a/sys/netinet/sctp_os_bsd.h
+++ b/sys/netinet/sctp_os_bsd.h
@@ -177,18 +177,9 @@ MALLOC_DECLARE(SCTP_M_MCORE);
} \
} while (0); \
}
-#define SCTPDBG_PKT(level, iph, sh) \
-{ \
- do { \
- if (SCTP_BASE_SYSCTL(sctp_debug_on) & level) { \
- sctp_print_address_pkt(iph, sh); \
- } \
- } while (0); \
-}
#else
#define SCTPDBG(level, params...)
#define SCTPDBG_ADDR(level, addr)
-#define SCTPDBG_PKT(level, iph, sh)
#endif
#ifdef SCTP_LTRACE_CHUNKS
@@ -394,10 +385,6 @@ typedef struct callout sctp_os_timer_t;
* its a NOP.
*/
-/* Macro's for getting length from V6/V4 header */
-#define SCTP_GET_IPV4_LENGTH(iph) (iph->ip_len)
-#define SCTP_GET_IPV6_LENGTH(ip6) (ntohs(ip6->ip6_plen))
-
/* get the v6 hop limit */
#define SCTP_GET_HLIM(inp, ro) in6_selecthlim((struct in6pcb *)&inp->ip_inp.inp, (ro ? (ro->ro_rt ? (ro->ro_rt->rt_ifp) : (NULL)) : (NULL)));
OpenPOWER on IntegriCloud