projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ignore bogus (large) return values from read
[unix-history]
/
usr
/
src
/
sys
/
netinet
/
ip_icmp.c
diff --git
a/usr/src/sys/netinet/ip_icmp.c
b/usr/src/sys/netinet/ip_icmp.c
index
7f11fa9
..
f545cd1
100644
(file)
--- a/
usr/src/sys/netinet/ip_icmp.c
+++ b/
usr/src/sys/netinet/ip_icmp.c
@@
-1,14
+1,15
@@
-/* ip_icmp.c 4.2
5 82/11/13
*/
+/* ip_icmp.c 4.2
7 83/02/10
*/
#include "../h/param.h"
#include "../h/systm.h"
#include "../h/mbuf.h"
#include "../h/protosw.h"
#include "../h/socket.h"
#include "../h/param.h"
#include "../h/systm.h"
#include "../h/mbuf.h"
#include "../h/protosw.h"
#include "../h/socket.h"
-#include
<time.h>
+#include
"../h/time.h"
#include "../h/kernel.h"
#include "../net/route.h"
#include "../h/kernel.h"
#include "../net/route.h"
+
#include "../netinet/in.h"
#include "../netinet/in_systm.h"
#include "../netinet/ip.h"
#include "../netinet/in.h"
#include "../netinet/in_systm.h"
#include "../netinet/ip.h"
@@
-47,7
+48,7
@@
icmp_error(oip, type, code)
/*
* First, formulate icmp message
*/
/*
* First, formulate icmp message
*/
- m = m_get(M_DONTWAIT);
+ m = m_get(M_DONTWAIT
, MT_HEADER
);
if (m == 0)
goto free;
m->m_len = oiplen + 8 + ICMP_MINLEN;
if (m == 0)
goto free;
m->m_len = oiplen + 8 + ICMP_MINLEN;