summaryrefslogtreecommitdiff
path: root/sys/net/if_gre.c
AgeCommit message (Collapse)Author
2009-06-02do the pf_pkt_addr_changed(m) magic just like gif etcHenning Brauer
tested by Manuel Rodriguez Morales <marodriguez at grupogdt.com>
2008-06-26First pass at removing clauses 3 and 4 from NetBSD licenses.Ray Lai
Not sure what's more surprising: how long it took for NetBSD to catch up to the rest of the BSDs (including UCB), or the amount of code that NetBSD has claimed for itself without attributing to the actual authors. OK deraadt@
2007-12-20return with ENOTTY instead of EINVAL for unknown ioctl requests.Brad Smith
ok claudio@ krw@ jason@ dlg@
2007-09-15malloc sweep:Henning Brauer
-remove useless casts -MALLOC/FREE -> malloc/free -use M_ZERO where appropriate instead of seperate bzero feedback & ok krw, hshoexer
2006-05-28Fix multicast and broadcast over gre(4) tunnels. Clear the M_MCAST and M_BCASTClaudio Jeker
mbuf flags so that the packet is sent out with a normal link local address instead of a multicast or broadcast address. OK brad@
2006-03-25allow bpf(4) to ignore packets based on their direction (inbound orDamien Miller
outbound), using a new BIOCSDIRFILT ioctl; guidance, feedback and ok canacar@
2006-03-04With the exception of two other small uncommited diffs this movesBrad Smith
the remainder of the network stack from splimp to splnet. ok miod@
2006-01-04Remove redundant calls to bpfdetach.Can Erkin Acar
ok brad@
2005-12-10m_pullup() the whole header, not the number of bytes in an int. FoundKenneth R Westerback
by lint. ok deraadt@
2005-08-14don't require a valid route when configuring the tunnel;Markus Friedl
from Stephen Marley; ok deraadt@
2005-07-31Introduce bpf_mtap_af and bpf_mtap_hdr to be used when passing a mbuf chainChristopher Pascoe
to bpf with either an address family or other header added. These helpers only allocate a much smaller struct m_hdr on the stack when needed, rather than leaving 256 byte struct mbufs on the stack in deep call paths. Also removes a fair bit of duplicated code. commit now, tune after deraadt@
2005-06-08no more netns handling for the various tunnel devices and loopbackHenning Brauer
2005-05-14- Add IPv6 over GRE.Brad Smith
- u_short -> u_int16_t - Change default MTU to 1476 (same value that Cisco and other *BSD's use). - Mark gre(4) interfaces as IFT_TUNNEL (Encapsulation interface). From NetBSD - Support setting the MTU Be very careful when upgrading, the change in default MTU might cause problems with an existing OpenBSD <-> OpenBSD setup. Thanks to Stephen Marley <stephen dot marley at catwoman dot cl-is dot com> for some testing.
2004-08-18fix bad packets passed to bpf from the gre(4) interface.Can Erkin Acar
reported by Robert Stone ( robert at arbor net ) via PR 3852 This is a different fix since gre(4) may carry non-ip packets. tested by Robert Stone and markus@ ok markus@ deraadt@
2003-12-16return error in ifc_destroy; ok deraadt, itojun, cedric, hshoexerMarkus Friedl
2003-12-08ip_output expects network byte order; report Bob Kitella; ok deraadtMarkus Friedl
2003-12-03add support for ifconfig clone/destroy; ok henning deraadtMarkus Friedl
2003-08-15change arguments to suser. suser now takes the process, and a flagsTed Unangst
argument. old cred only calls user suser_ucred. this will allow future work to more flexibly implement the idea of a root process. looks like something i saw in freebsd, but a little different. use of suser_ucred vs suser in file system code should be looked at again, for the moment semantics remain unchanged. review and input from art@ testing and further review miod@
2003-07-09do not flip ip_len/ip_off in netinet stack. deraadt ok.Jun-ichiro itojun Hagino
(please test, especially PF portion)
2003-03-25Missing splx(); Patrick LatifiTodd C. Miller
2003-01-04spellingTheo de Raadt
2002-08-28Fix a problem where passing NULL as a pointer with varargs does not promotePer Fogelstrom
NULL to full 64 bits on a 64 bit address system. Soultion is to add a (void *) cast before NULL. This makes a 64 bit MIPS kernel work and will probably help future 64 bit ports as well. OK from art@
2002-06-30allocate sockaddr_dl for ifnet in if_alloc_sadl(), as we don't always knowJun-ichiro itojun Hagino
the size of sockaddr_dl on if_attach() - for instance, see ether_ifattach(). from netbsd. fgs ok
2002-06-10- stop abusing IFF_UP.Jun-ichiro itojun Hagino
- do not use L3 address pair for L2.5 address pair. configure L2.5 address pair by using "ifconfig tunnel". - IFF_LINK2 is not needed, as it is just a reverse of IFF_LINK0. - do not modify IFF_LINK1 when you modify protocol type. chris ok
2002-06-09if_addrlen need not be 4, set to 0. From: Martin Husemann <martin@duskware.de>Jun-ichiro itojun Hagino
2002-06-09make sure to bzero sockaddr_inJun-ichiro itojun Hagino
2002-06-09support SIO*PHYADDR, so that we can configure outer address with ifconfig(8)Jun-ichiro itojun Hagino
2002-04-03WCCP sysctl variable -- ok deraadt@ niklas@Angelos D. Keromytis
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-25IF_DROP()Angelos D. Keromytis
2001-06-25Use tags to detect loops. In the future, perhaps we'll use them toAngelos D. Keromytis
actually also send the packet out the right interface.
2001-06-25Move common post M_COPY_HDR manipulation to the macro itself; angelos@ ok.Federico G. Schwindt
2001-06-22KNFTheo de Raadt
2001-06-05Allow boot -c to change number of gre devices. -moj ok angelos@Mats O Jansson
2001-05-27Fixup old mbuf chain head.Angelos D. Keromytis
2001-05-11Check m_pullup() and m_pullup2() return for NULL, not 0; itojun@ okAaron Campbell
2001-03-25Missing splx(s). Thanks to dawson and teamConstantine Sapuntzakis
2001-03-07Missing splx() in failure case; deraadt@ okAaron Campbell
2001-01-17Don't copy the inner header's TTL on the outer header.Angelos D. Keromytis
2000-01-16ETHERTYPE_ATALK -> ETHERTYPE_ATAngelos D. Keromytis
2000-01-11Add a recursion depth limit, similar to if_gif.c; also, whenAngelos D. Keromytis
computing the route for the GRE tunnel, verify that it does not point back to ourselves.
2000-01-08We don't need a pseudo-header for tcpdump on the output routine.Angelos D. Keromytis
2000-01-07Fix tcpdump -n -i greN (causes a panic in NetBSD)Angelos D. Keromytis
2000-01-07Make some of the GRE-specific ioctls privileged. Remove a lot ofAngelos D. Keromytis
unnecessary include files.
2000-01-07gre interface code, from NetBSD (with some changes)Angelos D. Keromytis