artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f3928f6
)
Don't add an extra 20 bytes to ip_len, m_pkthdr.len is already updated
author
angelos
<angelos@openbsd.org>
Tue, 11 Apr 2000 16:28:49 +0000
(16:28 +0000)
committer
angelos
<angelos@openbsd.org>
Tue, 11 Apr 2000 16:28:49 +0000
(16:28 +0000)
by M_PREPEND.
sys/netinet/ip_ether.c
patch
|
blob
|
history
diff --git
a/sys/netinet/ip_ether.c
b/sys/netinet/ip_ether.c
index
fc2d0cd
..
57c09f3
100644
(file)
--- a/
sys/netinet/ip_ether.c
+++ b/
sys/netinet/ip_ether.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: ip_ether.c,v 1.
7 2000/04/10 07:33:44
angelos Exp $ */
+/* $OpenBSD: ip_ether.c,v 1.
8 2000/04/11 16:28:49
angelos Exp $ */
/*
* The author of this code is Angelos D. Keromytis (kermit@adk.gr)
@@
-273,7
+273,7
@@
etherip_output(struct mbuf *m, struct tdb *tdb, struct mbuf **mp, int skip,
ipo->ip_v = IPVERSION;
ipo->ip_hl = 5;
- ipo->ip_len = htons(m->m_pkthdr.len
+ sizeof(struct ip)
);
+ ipo->ip_len = htons(m->m_pkthdr.len);
ipo->ip_ttl = ip_defttl;
ipo->ip_p = IPPROTO_ETHERIP;
ipo->ip_tos = 0;