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
don't generate icmp message without a copy of the original ip
[unix-history]
/
usr
/
src
/
sys
/
netinet
/
raw_ip.c
diff --git
a/usr/src/sys/netinet/raw_ip.c
b/usr/src/sys/netinet/raw_ip.c
index
4840265
..
24ed7a4
100644
(file)
--- a/
usr/src/sys/netinet/raw_ip.c
+++ b/
usr/src/sys/netinet/raw_ip.c
@@
-1,18
+1,20
@@
-/* raw_ip.c 4.1
5 82/10/17
*/
+/* raw_ip.c 4.1
7 83/02/10
*/
#include "../h/param.h"
#include "../h/mbuf.h"
#include "../h/socket.h"
#include "../h/protosw.h"
#include "../h/socketvar.h"
#include "../h/param.h"
#include "../h/mbuf.h"
#include "../h/socket.h"
#include "../h/protosw.h"
#include "../h/socketvar.h"
+#include "../h/errno.h"
+
#include "../net/if.h"
#include "../net/if.h"
+#include "../net/raw_cb.h"
+#include "../net/route.h"
+
#include "../netinet/in.h"
#include "../netinet/in_systm.h"
#include "../netinet/ip.h"
#include "../netinet/ip_var.h"
#include "../netinet/in.h"
#include "../netinet/in_systm.h"
#include "../netinet/ip.h"
#include "../netinet/ip_var.h"
-#include "../net/raw_cb.h"
-#include "../net/route.h"
-#include <errno.h>
/*
* Raw interface to IP protocol.
/*
* Raw interface to IP protocol.
@@
-58,7
+60,7
@@
rip_output(m0, so)
*/
for (m = m0; m; m = m->m_next)
len += m->m_len;
*/
for (m = m0; m; m = m->m_next)
len += m->m_len;
- m = m_get(M_DONTWAIT);
+ m = m_get(M_DONTWAIT
, MT_HEADER
);
if (m == 0) {
error = ENOBUFS;
goto bad;
if (m == 0) {
error = ENOBUFS;
goto bad;