diff options
author | markj <markj@FreeBSD.org> | 2013-08-25 21:54:41 +0000 |
---|---|---|
committer | markj <markj@FreeBSD.org> | 2013-08-25 21:54:41 +0000 |
commit | 29e4661920638221bbffb4c527fb24daa4702b4c (patch) | |
tree | c2b1016fdbcd18b8a7c9f33a21b6c2bb2b755348 /sys/netinet6/ip6_input.c | |
parent | 03a89a5fe0a80e1df50027d7d94266daffa41805 (diff) | |
download | FreeBSD-src-29e4661920638221bbffb4c527fb24daa4702b4c.zip FreeBSD-src-29e4661920638221bbffb4c527fb24daa4702b4c.tar.gz |
Implement the ip, tcp, and udp DTrace providers. The probe definitions use
dynamic translation so that their arguments match the definitions for
these providers in Solaris and illumos. Thus, existing scripts for these
providers should work unmodified on FreeBSD.
Tested by: gnn, hiren
MFC after: 1 month
Diffstat (limited to 'sys/netinet6/ip6_input.c')
-rw-r--r-- | sys/netinet6/ip6_input.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/netinet6/ip6_input.c b/sys/netinet6/ip6_input.c index 02bbf75..31f048f 100644 --- a/sys/netinet6/ip6_input.c +++ b/sys/netinet6/ip6_input.c @@ -67,6 +67,7 @@ __FBSDID("$FreeBSD$"); #include "opt_inet6.h" #include "opt_ipfw.h" #include "opt_ipsec.h" +#include "opt_kdtrace.h" #include "opt_route.h" #include <sys/param.h> @@ -76,6 +77,7 @@ __FBSDID("$FreeBSD$"); #include <sys/proc.h> #include <sys/domain.h> #include <sys/protosw.h> +#include <sys/sdt.h> #include <sys/socket.h> #include <sys/socketvar.h> #include <sys/errno.h> @@ -92,6 +94,7 @@ __FBSDID("$FreeBSD$"); #include <net/vnet.h> #include <netinet/in.h> +#include <netinet/in_kdtrace.h> #include <netinet/ip_var.h> #include <netinet/in_systm.h> #include <net/if_llatbl.h> @@ -538,6 +541,8 @@ ip6_input(struct mbuf *m) IP6STAT_INC(ip6s_nxthist[ip6->ip6_nxt]); + IP_PROBE(receive, NULL, NULL, ip6, m->m_pkthdr.rcvif, NULL, ip6); + /* * Check against address spoofing/corruption. */ |