OpenBSD CVS

CVS log for src/sys/netinet6/Attic/in6_gif.c


[BACK] Up to [local] / src / sys / netinet6

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.41, Mon Sep 28 08:32:05 2015 UTC (8 years, 8 months ago) by mpi
Branch: MAIN
CVS Tags: HEAD
Changes since 1.40: +1 -1 lines
FILE REMOVED

Merge gif(4)'s tentacles in a single file.

Tested by <mxb AT alumni DOT chalmers DOT se>.

ok dlg@

Revision 1.40 / (download) - annotate - [select for diffs], Tue Jun 16 11:09:40 2015 UTC (8 years, 11 months ago) by mpi
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8
Changes since 1.39: +2 -2 lines
Diff to previous 1.39 (colored)

Store a unique ID, an interface index, rather than a pointer to the
receiving interface in the packet header of every mbuf.

The interface pointer should now be retrieved when necessary with
if_get().  If a NULL pointer is returned by if_get(), the interface
has probably been destroy/removed and the mbuf should be freed.

Such mechanism will simplify garbage collection of mbufs and limit
problems with dangling ifp pointers.

Tested by jmatthew@ and krw@, discussed with many.

ok mikeb@, bluhm@, dlg@

Revision 1.39 / (download) - annotate - [select for diffs], Mon Jun 8 22:19:28 2015 UTC (9 years ago) by krw
Branch: MAIN
Changes since 1.38: +2 -2 lines
Diff to previous 1.38 (colored)

More damned eye searing whitespace. No change to .o files.

Revision 1.38 / (download) - annotate - [select for diffs], Tue May 12 12:27:17 2015 UTC (9 years, 1 month ago) by mpi
Branch: MAIN
Changes since 1.37: +2 -2 lines
Diff to previous 1.37 (colored)

MPLS also needs a definition for etherip_output(), fix build without
bridge.

Revision 1.37 / (download) - annotate - [select for diffs], Sat Mar 14 03:38:52 2015 UTC (9 years, 3 months ago) by jsg
Branch: MAIN
Changes since 1.36: +1 -3 lines
Diff to previous 1.36 (colored)

Remove some includes include-what-you-use claims don't
have any direct symbols used.  Tested for indirect use by compiling
amd64/i386/sparc64 kernels.

ok tedu@ deraadt@

Revision 1.36 / (download) - annotate - [select for diffs], Sat Jan 24 00:29:06 2015 UTC (9 years, 4 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.35: +4 -4 lines
Diff to previous 1.35 (colored)

Userland (base & ports) was adapted to always include <netinet/in.h>
before <net/pfvar.h> or <net/if_pflog.h>.  The kernel files can be
cleaned up next.  Some sockaddr_union steps make it into here as well.
ok naddy

Revision 1.35 / (download) - annotate - [select for diffs], Fri Dec 19 17:14:40 2014 UTC (9 years, 5 months ago) by tedu
Branch: MAIN
Changes since 1.34: +1 -5 lines
Diff to previous 1.34 (colored)

unifdef INET in net code as a precursor to removing the pretend option.
long live the one true internet.
ok henning mikeb

Revision 1.34 / (download) - annotate - [select for diffs], Fri Dec 5 15:50:04 2014 UTC (9 years, 6 months ago) by mpi
Branch: MAIN
Changes since 1.33: +2 -1 lines
Diff to previous 1.33 (colored)

Explicitly include <net/if_var.h> instead of pulling it in <net/if.h>.

ok mikeb@, krw@, bluhm@, tedu@

Revision 1.33 / (download) - annotate - [select for diffs], Mon Sep 8 06:24:13 2014 UTC (9 years, 9 months ago) by jsg
Branch: MAIN
Changes since 1.32: +1 -2 lines
Diff to previous 1.32 (colored)

remove uneeded route.h includes
ok miod@ mpi@

Revision 1.32 / (download) - annotate - [select for diffs], Tue Jul 22 11:06:10 2014 UTC (9 years, 10 months ago) by mpi
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6
Changes since 1.31: +1 -2 lines
Diff to previous 1.31 (colored)

Fewer <netinet/in_systm.h> !

Revision 1.31 / (download) - annotate - [select for diffs], Fri May 31 15:04:23 2013 UTC (11 years ago) by bluhm
Branch: MAIN
CVS Tags: OPENBSD_5_5_BASE, OPENBSD_5_5, OPENBSD_5_4_BASE, OPENBSD_5_4
Changes since 1.30: +4 -4 lines
Diff to previous 1.30 (colored)

Remove a bunch of sockaddr_in6 pointer casts and replace others
with sin6tosa() or satosin6() inline functions.  This allows the
compiler to check the types more strictly.
OK mpi@

Revision 1.30 / (download) - annotate - [select for diffs], Sun Apr 3 13:54:21 2011 UTC (13 years, 2 months ago) by stsp
Branch: MAIN
CVS Tags: OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0
Changes since 1.29: +1 -5 lines
Diff to previous 1.29 (colored)

Kill redundant offsetof definitions; ok deraadt henning sthen thib

Revision 1.29 / (download) - annotate - [select for diffs], Tue May 11 09:36:07 2010 UTC (14 years, 1 month ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8
Changes since 1.28: +24 -48 lines
Diff to previous 1.28 (colored)

Massiv cleanup of the gif(4) mess. Move encapsulation into gif_output()
where it is not necessary to guess protocols by looking at the first nibble.
in_gif_output() will encapsulate the packet but not send it. Because of
etherip support and the way the bridge works a minimal hack is needed in
gif_start() to ensure that the bridged packets are encapsulated as well.
This actually started with the idea to add MPLS support but that turned out
to be not as simple as in the gre(4) case.
Tested by myself (IP, IPv6, etherip, MPLS), sthen@ (IP, IPv6), naddy (IPv6)
OK sthen@

Revision 1.28 / (download) - annotate - [select for diffs], Fri May 7 13:33:17 2010 UTC (14 years, 1 month ago) by claudio
Branch: MAIN
Changes since 1.27: +3 -1 lines
Diff to previous 1.27 (colored)

Start cleaning up the mess called rtalloc*. Kill rtalloc2, make rtalloc1
accept flags for report and nocloning. Move the rtableid into struct route
(with a minor twist for now) and make a few more codepathes rdomain aware.
Appart from the pf.c and route.c bits the diff is mostly mechanical.
More to come...
OK michele, henning

Revision 1.27 / (download) - annotate - [select for diffs], Sun Sep 28 15:25:32 2008 UTC (15 years, 8 months ago) by jsing
Branch: MAIN
CVS Tags: OPENBSD_4_7_BASE, OPENBSD_4_7, OPENBSD_4_6_BASE, OPENBSD_4_6, OPENBSD_4_5_BASE, OPENBSD_4_5
Changes since 1.26: +10 -1 lines
Diff to previous 1.26 (colored)

Clear the PF state key before an IP packet exits a gif(4) tunnel, in order
to prevent state key mismatches.

ok henning@

Revision 1.26 / (download) - annotate - [select for diffs], Wed Jun 11 19:00:50 2008 UTC (16 years ago) by mcbride
Branch: MAIN
CVS Tags: OPENBSD_4_4_BASE, OPENBSD_4_4
Changes since 1.25: +7 -9 lines
Diff to previous 1.25 (colored)

ANSIfy to sync with KAME. From Karl Sjodahl <dunceor@gmail.com>.

ok todd deraadt naddy bluhm

Revision 1.25 / (download) - annotate - [select for diffs], Fri Jun 1 00:52:38 2007 UTC (17 years ago) by henning
Branch: MAIN
CVS Tags: OPENBSD_4_3_BASE, OPENBSD_4_3, OPENBSD_4_2_BASE, OPENBSD_4_2
Changes since 1.24: +2 -2 lines
Diff to previous 1.24 (colored)

apply the "skip ipsec if there are no flows" speedup diff to IPv6 too.
we need a pointer to the inpcb to decide, which was not previously
passed to ip6_output, so this diff is a little bigger.
from itojun, ok ryan

Revision 1.24 / (download) - annotate - [select for diffs], Thu Feb 15 22:45:09 2007 UTC (17 years, 3 months ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_4_1_BASE, OPENBSD_4_1
Changes since 1.23: +5 -17 lines
Diff to previous 1.23 (colored)

Simplify the #if NBRIDGE case as in in_gif.c:1.33.

Revision 1.23 / (download) - annotate - [select for diffs], Sat Feb 10 15:34:22 2007 UTC (17 years, 4 months ago) by claudio
Branch: MAIN
Changes since 1.22: +3 -18 lines
Diff to previous 1.22 (colored)

Cleanup, kill dead code and unused arguments. Mostly stuff that is computed
and passed around but never used. OK mglocker@

Revision 1.7.2.6 / (download) - annotate - [select for diffs], Thu Feb 19 10:57:25 2004 UTC (20 years, 3 months ago) by niklas
Branch: SMP
Changes since 1.7.2.5: +1 -2 lines
Diff to previous 1.7.2.5 (colored) to branchpoint 1.7 (colored) next main 1.8 (colored)

Merge of current from two weeks agointo the SMP branch

Revision 1.22 / (download) - annotate - [select for diffs], Wed Dec 3 14:51:05 2003 UTC (20 years, 6 months ago) by markus
Branch: MAIN
CVS Tags: SMP_SYNC_B, SMP_SYNC_A, OPENBSD_4_0_BASE, OPENBSD_4_0, OPENBSD_3_9_BASE, OPENBSD_3_9, OPENBSD_3_8_BASE, OPENBSD_3_8, OPENBSD_3_7_BASE, OPENBSD_3_7, OPENBSD_3_6_BASE, OPENBSD_3_6, OPENBSD_3_5_BASE, OPENBSD_3_5
Changes since 1.21: +2 -3 lines
Diff to previous 1.21 (colored)

add support for ifconfig clone/destroy; ok henning deraadt

Revision 1.7.2.5 / (download) - annotate - [select for diffs], Fri Mar 28 00:41:29 2003 UTC (21 years, 2 months ago) by niklas
Branch: SMP
Changes since 1.7.2.4: +11 -21 lines
Diff to previous 1.7.2.4 (colored) to branchpoint 1.7 (colored)

Sync the SMP branch with 3.3

Revision 1.19.2.1 / (download) - annotate - [select for diffs], Tue Jun 11 03:31:37 2002 UTC (22 years ago) by art
Branch: UBC
Changes since 1.19: +12 -22 lines
Diff to previous 1.19 (colored) next main 1.20 (colored)

Sync UBC branch to -current

Revision 1.21 / (download) - annotate - [select for diffs], Thu May 30 04:19:44 2002 UTC (22 years ago) by itojun
Branch: MAIN
CVS Tags: UBC_SYNC_B, UBC_SYNC_A, OPENBSD_3_4_BASE, OPENBSD_3_4, OPENBSD_3_3_BASE, OPENBSD_3_3, OPENBSD_3_2_BASE, OPENBSD_3_2
Changes since 1.20: +4 -21 lines
Diff to previous 1.20 (colored)

minor KNF.  nuke obsolete IFF_LINK0 support completely

Revision 1.20 / (download) - annotate - [select for diffs], Wed May 29 23:38:58 2002 UTC (22 years ago) by itojun
Branch: MAIN
Changes since 1.19: +9 -2 lines
Diff to previous 1.19 (colored)

force fragment to minimum link MTU (1280) when needed (when PMTUD does
not take effect) - like icmp6 responses or foo-over-IPv6 tunnel.

Revision 1.7.2.4 / (download) - annotate - [select for diffs], Wed Mar 6 02:15:08 2002 UTC (22 years, 3 months ago) by niklas
Branch: SMP
Changes since 1.7.2.3: +1 -5 lines
Diff to previous 1.7.2.3 (colored) to branchpoint 1.7 (colored)

Merge in trunk

Revision 1.19 / (download) - annotate - [select for diffs], Fri Dec 7 09:16:07 2001 UTC (22 years, 6 months ago) by itojun
Branch: MAIN
CVS Tags: UBC_BASE, OPENBSD_3_1_BASE, OPENBSD_3_1
Branch point for: UBC
Changes since 1.18: +1 -5 lines
Diff to previous 1.18 (colored)

whitespace/comment sync with kame

Revision 1.7.2.3 / (download) - annotate - [select for diffs], Wed Oct 31 03:29:04 2001 UTC (22 years, 7 months ago) by nate
Branch: SMP
Changes since 1.7.2.2: +3 -3 lines
Diff to previous 1.7.2.2 (colored) to branchpoint 1.7 (colored)

Sync the SMP branch to something just after 3.0

Revision 1.18 / (download) - annotate - [select for diffs], Sun Aug 19 06:31:56 2001 UTC (22 years, 9 months ago) by angelos
Branch: MAIN
CVS Tags: OPENBSD_3_0_BASE, OPENBSD_3_0
Changes since 1.17: +2 -2 lines
Diff to previous 1.17 (colored)

Pass the interface (if any) to ipip_input(), so it can be used in
BPF. Closes PR 2000.

Revision 1.17 / (download) - annotate - [select for diffs], Fri Jul 27 15:48:38 2001 UTC (22 years, 10 months ago) by itojun
Branch: MAIN
Changes since 1.16: +2 -2 lines
Diff to previous 1.16 (colored)

variable name "gif" is way too generic - use "gif_softc".  sync with kame

Revision 1.7.2.2 / (download) - annotate - [select for diffs], Wed Jul 4 10:55:19 2001 UTC (22 years, 11 months ago) by niklas
Branch: SMP
Changes since 1.7.2.1: +5 -5 lines
Diff to previous 1.7.2.1 (colored) to branchpoint 1.7 (colored)

Merge in -current from two days ago in the SMP branch.
As usual with merges, they do not indicate progress, so do not hold
your breath for working SMP, and do not mail me and ask about the
state of it.  It has not changed.  There is work ongoing, but very, very
slowly.  The commit is done in parts as to not lock up the tree in too
big chunks at a time.

Revision 1.16 / (download) - annotate - [select for diffs], Sat Jun 9 06:43:37 2001 UTC (23 years ago) by angelos
Branch: MAIN
Changes since 1.15: +1 -3 lines
Diff to previous 1.15 (colored)

No need for net/net_osdep.h

Revision 1.15 / (download) - annotate - [select for diffs], Fri Jun 8 10:39:37 2001 UTC (23 years ago) by art
Branch: MAIN
Changes since 1.14: +3 -1 lines
Diff to previous 1.14 (colored)

Update packet counters.

Revision 1.14 / (download) - annotate - [select for diffs], Wed May 30 12:31:09 2001 UTC (23 years ago) by angelos
Branch: MAIN
Changes since 1.13: +2 -2 lines
Diff to previous 1.13 (colored)

Update for new prototypes.

Revision 1.7.2.1 / (download) - annotate - [select for diffs], Mon May 14 22:40:17 2001 UTC (23 years, 1 month ago) by niklas
Branch: SMP
Changes since 1.7: +28 -4 lines
Diff to previous 1.7 (colored)

merge in approximately 2.9 into SMP branch

Revision 1.13 / (download) - annotate - [select for diffs], Fri May 11 17:20:12 2001 UTC (23 years, 1 month ago) by aaron
Branch: MAIN
Changes since 1.12: +2 -2 lines
Diff to previous 1.12 (colored)

Check m_pullup() and m_pullup2() return for NULL, not 0; itojun@ ok

Revision 1.12 / (download) - annotate - [select for diffs], Sat Apr 14 00:30:59 2001 UTC (23 years, 2 months ago) by angelos
Branch: MAIN
CVS Tags: OPENBSD_2_9_BASE, OPENBSD_2_9
Changes since 1.11: +2 -2 lines
Diff to previous 1.11 (colored)

Minor changes, preparing for real socket-attached TDBs; also, more
information will be stored in the TDB. ok ho@ provos@

Revision 1.11 / (download) - annotate - [select for diffs], Fri Feb 16 08:48:05 2001 UTC (23 years, 3 months ago) by itojun
Branch: MAIN
Changes since 1.10: +4 -3 lines
Diff to previous 1.10 (colored)

sync whitespace/comment with kame.  to help merge tasks

Revision 1.10 / (download) - annotate - [select for diffs], Sun Dec 31 17:23:35 2000 UTC (23 years, 5 months ago) by angelos
Branch: MAIN
Changes since 1.9: +3 -1 lines
Diff to previous 1.9 (colored)

Fix non-NBRIDGE case

Revision 1.9 / (download) - annotate - [select for diffs], Sat Dec 30 21:51:00 2000 UTC (23 years, 5 months ago) by angelos
Branch: MAIN
Changes since 1.8: +5 -1 lines
Diff to previous 1.8 (colored)

AF_LINK case

Revision 1.8 / (download) - annotate - [select for diffs], Sat Dec 30 19:03:44 2000 UTC (23 years, 5 months ago) by angelos
Branch: MAIN
Changes since 1.7: +18 -1 lines
Diff to previous 1.7 (colored)

Send AF_LINK to etherip_output()

Revision 1.7 / (download) - annotate - [select for diffs], Mon Feb 7 06:18:44 2000 UTC (24 years, 4 months ago) by itojun
Branch: MAIN
CVS Tags: SMP_BASE, OPENBSD_2_8_BASE, OPENBSD_2_8, OPENBSD_2_7_BASE, OPENBSD_2_7
Branch point for: SMP
Changes since 1.6: +2 -2 lines
Diff to previous 1.6 (colored)

s/DIAGNOSTIC/DEBUG/

Revision 1.6 / (download) - annotate - [select for diffs], Mon Feb 7 06:09:10 2000 UTC (24 years, 4 months ago) by itojun
Branch: MAIN
Changes since 1.5: +3 -3 lines
Diff to previous 1.5 (colored)

fix include file path related to ip6.

Revision 1.5 / (download) - annotate - [select for diffs], Fri Jan 21 03:15:06 2000 UTC (24 years, 4 months ago) by angelos
Branch: MAIN
Changes since 1.4: +9 -5 lines
Diff to previous 1.4 (colored)

Rename the ip4_* routines to ipip_*, make it so GIF tunnels are not
affected by net.inet.ipip.allow (the sysctl formerly known as
net.inet.ip4.allow), rename the VIF ipip_input to ipip_mroute_input.

Revision 1.4 / (download) - annotate - [select for diffs], Wed Jan 12 06:35:04 2000 UTC (24 years, 5 months ago) by angelos
Branch: MAIN
Changes since 1.3: +66 -127 lines
Diff to previous 1.3 (colored)

Use netinet/ip_ip4.c routines.

Revision 1.3 / (download) - annotate - [select for diffs], Wed Dec 15 07:08:00 1999 UTC (24 years, 6 months ago) by itojun
Branch: MAIN
Changes since 1.2: +3 -2 lines
Diff to previous 1.2 (colored)

do not overwrite traffic class portion when filling in IPv6 version field.

Revision 1.2 / (download) - annotate - [select for diffs], Fri Dec 10 10:04:27 1999 UTC (24 years, 6 months ago) by angelos
Branch: MAIN
Changes since 1.1: +1 -15 lines
Diff to previous 1.1 (colored)

Remove remaining unnecessary ifdefs (itojun will hate me for this :-)

Revision 1.1 / (download) - annotate - [select for diffs], Wed Dec 8 06:50:21 1999 UTC (24 years, 6 months ago) by itojun
Branch: MAIN
CVS Tags: kame_19991208

bring in KAME IPv6 code, dated 19991208.
replaces NRL IPv6 layer.  reuses NRL pcb layer.  no IPsec-on-v6 support.
see sys/netinet6/{TODO,IMPLEMENTATION} for more details.

GENERIC configuration should work fine as before.  GENERIC.v6 works fine
as well, but you'll need KAME userland tools to play with IPv6 (will be
bringed into soon).

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.