diff options
author | emaste <emaste@FreeBSD.org> | 2008-09-26 18:30:11 +0000 |
---|---|---|
committer | emaste <emaste@FreeBSD.org> | 2008-09-26 18:30:11 +0000 |
commit | ba942d55439c34784ef1028eca969353647a270b (patch) | |
tree | 9811d2574bd4d497aabb20d93681d10e70c560ed /sys/netinet | |
parent | 6ff4a6561472ae85767b38d5bd22f91d9528730d (diff) | |
download | FreeBSD-src-ba942d55439c34784ef1028eca969353647a270b.zip FreeBSD-src-ba942d55439c34784ef1028eca969353647a270b.tar.gz |
Move CTASSERT from header file to source file, per implementation note now
in the CTASSERT man page.
Submitted by: Ryan Stone
Diffstat (limited to 'sys/netinet')
-rw-r--r-- | sys/netinet/ip.h | 4 | ||||
-rw-r--r-- | sys/netinet/ip_input.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/netinet/ip.h b/sys/netinet/ip.h index a4e930a..00d9cc1 100644 --- a/sys/netinet/ip.h +++ b/sys/netinet/ip.h @@ -69,10 +69,6 @@ struct ip { struct in_addr ip_src,ip_dst; /* source and dest address */ } __packed __aligned(4); -#ifdef CTASSERT -CTASSERT(sizeof (struct ip) == 20); -#endif - #define IP_MAXPACKET 65535 /* maximum packet size */ /* diff --git a/sys/netinet/ip_input.c b/sys/netinet/ip_input.c index 32a9ca1..ef1586d 100644 --- a/sys/netinet/ip_input.c +++ b/sys/netinet/ip_input.c @@ -85,6 +85,10 @@ __FBSDID("$FreeBSD$"); #include <security/mac/mac_framework.h> +#ifdef CTASSERT +CTASSERT(sizeof(struct ip) == 20); +#endif + int rsvp_on = 0; int ipforwarding = 0; |