summaryrefslogtreecommitdiff
path: root/sys/netinet/ip_ether.c
AgeCommit message (Collapse)Author
2001-07-27variable name "gif" is way too generic - use "gif_softc". sync with kameJun-ichiro itojun Hagino
2001-06-27Get rid of M_COPY_* macros; either use M_MOVE_* or M_DUP_*, dependingAngelos D. Keromytis
on how macros should be treated. Code by fgsch@, ok by me and itojun@
2001-06-26More KNFAngelos D. Keromytis
2001-06-25Copyright.Angelos D. Keromytis
2001-06-25Don't double-clear M_PKTHDR/tags.Angelos D. Keromytis
2001-06-23Remove unneeded ip_id convertions.Federico G. Schwindt
Instead of using HTONS macro in some places, use htons directly in the struct member and save us a few bytes. Fix comment.
2001-06-19mop up after angelosTheo de Raadt
2001-06-08Cut down on include files.Angelos D. Keromytis
2001-05-27Reset pkthdr on old mbuf head.Angelos D. Keromytis
2001-04-06Move offsetof define into sys/param.hConstantine Sapuntzakis
2001-02-07allow gif-less compileMichael Shalayeff
2001-02-06- bridge_input() expects to be called at splnet(), not splsoftnet()Jason Wright
- add a bit more debugging (controlled by ENCDEBUG and encdebug) - turn off several more m_flags that may have been set by the higher layers (so any sharing of mbuf's in the return direction doesn't confuse the upper layers)
2001-02-03- define and use EtherIP version 3 (2 byte padded header instead of theJason Wright
single byte header used in V2), and drop support for V2. - that done, remove some of the buffer copies that were used as alignment shims
2001-02-03KNFJason Wright
2001-02-02a quick checkpoint:Jason Wright
- add a struct etherip_header (will make switching protocol versions a bit easier and give a base for aligning things correctly) - fix the version/reserved field checking for good this time - don't need to m_copydata to grab the first byte of an mbuf that you know has t hat byte - m_adj() instead of homebrew - fix M_MCAST/M_BCAST setting (cut/pasto) - if_imcasts was being updated on the wrong interface
2001-02-01grr, don't forget to change the reserved field to the upper 4 bits of the ↵Jason Wright
header.
2001-02-01according to the draft-housley-etherip-01, the version is in the low orderJason Wright
4 bits of the header
2001-02-01Ok, more alignment fallout (caused by a single byte header interspersed withJason Wright
nicely aligned headers)... Copy the first MHLEN worth of data into a new buffer and rebuild the mbuf to make sure that the protocol data is nicely aligned.
2001-01-31it's obviously bed time... really avoid mbuf lossage if MGETHDR failsJason Wright
2001-01-31oops, avoid mbuf lossage if MGETHDR failsJason Wright
2001-01-31Allocate a new mbuf for the header info (struct ip + one, stupid, byte).Jason Wright
This works around the fact that M_PREPEND() with a non-word sized length can leave m->m_data pointing to a non-word aligned address.
2001-01-15Careful with bitmasks (henric@aimnet.com)Angelos D. Keromytis
2001-01-09One-byte EtherIP header, per the relevant draft (soon to be RFC).Angelos D. Keromytis
* * NOTE * * This breaks backward compatibility with 2.7 and 2.8 bridges. * * NOTE * *
2000-12-31Fix non-NGIF case.Angelos D. Keromytis
2000-12-30Use gif* instead of enc* for the bridge.Angelos D. Keromytis
2000-09-19Lots and lots of changes.Angelos D. Keromytis
2000-04-18Remove the ethernet header from the mbuf before passing it on toAngelos D. Keromytis
bridge_input()
2000-04-11Don't add an extra 20 bytes to ip_len, m_pkthdr.len is already updatedAngelos D. Keromytis
by M_PREPEND.
2000-04-10Oops on sanity logic.Angelos D. Keromytis
2000-01-07Remove unnecessary include files.Angelos D. Keromytis
1999-12-25Support v4 and v6 destination TDBs.Angelos D. Keromytis
1999-12-06New ESP code that's v4 and v6 friendly.Angelos D. Keromytis
1999-11-04Do a little preprocessing on the incoming mbuf: set the MCAST/BCAST m_flagJason Wright
as appropriate
1999-10-29Queue on the bridge interface.Angelos D. Keromytis
1999-10-28Add Ethernet-IP encapsulation handling.Angelos D. Keromytis