summaryrefslogtreecommitdiffstats
path: root/sys/sys/mac.h
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2003-08-21 18:21:22 +0000
committerrwatson <rwatson@FreeBSD.org>2003-08-21 18:21:22 +0000
commit32ed1a62a81fa74b7ba72050f7fcc471b032f95c (patch)
tree269bdd075acbd16f8db9b0379a3518d07ca3cd76 /sys/sys/mac.h
parent31a9062bd5a40857d69d229a261f64e30a94e727 (diff)
downloadFreeBSD-src-32ed1a62a81fa74b7ba72050f7fcc471b032f95c.zip
FreeBSD-src-32ed1a62a81fa74b7ba72050f7fcc471b032f95c.tar.gz
Introduce two new MAC Framework and MAC policy entry points:
mac_reflect_mbuf_icmp() mac_reflect_mbuf_tcp() These entry points permit MAC policies to do "update in place" changes to the labels on ICMP and TCP mbuf headers when an ICMP or TCP response is generated to a packet outside of the context of an existing socket. For example, in respond to a ping or a RST packet to a SYN on a closed port. Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories
Diffstat (limited to 'sys/sys/mac.h')
-rw-r--r--sys/sys/mac.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/sys/mac.h b/sys/sys/mac.h
index 046c2fc..b0d8829 100644
--- a/sys/sys/mac.h
+++ b/sys/sys/mac.h
@@ -210,6 +210,8 @@ void mac_create_mbuf_multicast_encap(struct mbuf *oldmbuf,
struct ifnet *ifnet, struct mbuf *newmbuf);
void mac_create_mbuf_netlayer(struct mbuf *oldmbuf, struct mbuf *newmbuf);
int mac_fragment_match(struct mbuf *fragment, struct ipq *ipq);
+void mac_reflect_mbuf_icmp(struct mbuf *m);
+void mac_reflect_mbuf_tcp(struct mbuf *m);
void mac_update_ipq(struct mbuf *fragment, struct ipq *ipq);
/*
OpenPOWER on IntegriCloud