summaryrefslogtreecommitdiff
path: root/sys/net/if_loop.c
AgeCommit message (Collapse)Author
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-08-02pass the AF in network byte order to bpfMarkus Friedl
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-12lo0 is special, attaches early an different than the other loopback interfacesHenning Brauer
needs special treatment to join the lo group, ryan ok
2005-06-08no more netns handling for the various tunnel devices and loopbackHenning Brauer
2004-07-16remove netiso shitz, millert okHenning Brauer
2003-12-16return error in ifc_destroy; ok deraadt, itojun, cedric, hshoexerMarkus Friedl
2003-12-10de-register. deraadt okJun-ichiro itojun Hagino
2003-12-03add support for ifconfig clone/destroy; ok henning deraadtMarkus Friedl
2003-06-02Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2003-05-03string fixes; tedu okTheo de Raadt
2003-05-03just as a safety measure, set m_flags to 0 for mbufs allocated on stack.Jun-ichiro itojun Hagino
dhartmei ok
2003-01-07remove the altq classifier code which is replaced by pf and no longer used.Kenjiro Cho
ok henning@, deraadt@
2002-09-11KNF - return is not a function.Jun-ichiro itojun Hagino
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-03-14First round of __P removal in sysTodd C. Miller
2002-01-02allow for setting of the loopback MTU, set IFF_RUNNING on address configurationDug Song
2001-12-18NRL license cleaningTheo de Raadt
2001-07-04Make preprocessor happier, don't give it untasty tokens at end of input.Marc Espie
Ok millert@
2001-06-27introduce the ALTQ queue macros into sys/net files.Kenjiro Cho
the new model removes direct references to the fields in ifp->if_snd, and defines the following macros to manipulate ifp->if_snd. IFQ_ENQUEUE(ifq, m, pktattr, err) IFQ_DEQUEUE(ifq, m) IFQ_POLL(ifq, m) IFQ_PURGE(ifq) IFQ_IS_EMPTY(ifq) the new model also enforces some rules regarding how to use these macros. details are descrined in http://www.csl.sony.co.jp/~kjc/software/altq-new-design.txt
2001-06-15change the meaning of ifnet.if_lastchange to meet RFC1573 ifLastChange.Jun-ichiro itojun Hagino
follows BSD/OS practice and ucd-snmp code (FreeBSD does it for specific interfaces only). was: if_lastchange get updated on every packet transmission/receipt. now: if_lastchange get updated when IFF_UP is changed.
2001-02-06forgot to bzero() malloced memoryMichael Shalayeff
2001-02-06allow changing number of loopbacks in ukc.Michael Shalayeff
change rest of the code to use lo0ifp pointing to the corresponding struct ifnet. itojun@ and niklas@ ok
2001-01-19pull post-4.4BSD change to sys/net/route.c from BSD/OS 4.2 (UCB copyrighted).Jun-ichiro itojun Hagino
have sys/net/route.c:rtrequest1(), which takes rt_addrinfo * as the argument. pass rt_addrinfo all the way down to rtrequest, and ifa->ifa_rtrequest. 3rd arg of ifa->ifa_rtrequest is now rt_addrinfo * instead of sockaddr * (almost noone is using it anyways). benefit: the follwoing command now works. previously we need two route(8) invocations, "add" then "change". # route add -inet6 default ::1 -ifp gif0 remove unsafe typecast in rtrequest(), from rtentry * to sockaddr *. it was introduced by 4.3BSD-reno and never corrected. XXX is eon_rtrequest() change correct regarding to 3rd arg? eon_rtrequest() and rtrequest() were incorrect since 4.3BSD-reno, so i do not have correct answer in the source code. someone with more clue about netiso-over-ip, please help.
2000-06-18move m_pullup2() equivalent for KAME requirement into ip6_input().Jun-ichiro itojun Hagino
it was in looutput() to make KAME ipsec4 happy. however, since we don't have KAME ipsec4 in openbsd, we don't need it in looutput().
2000-02-07fix include file path related to ip6.Jun-ichiro itojun Hagino
1999-12-08bring in KAME IPv6 code, dated 19991208.Jun-ichiro itojun Hagino
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).
1999-01-08inet6 support; NRL/cmetzTheo de Raadt
1998-06-26convert DLT_LOOP header to network-order u_int32_tTheo de Raadt
1998-06-04add DLT_LOOP support; 4-byte header indicates proto; cstone@pobox.comTheo de Raadt
1997-12-31make the loopback interfaces ordered in the iface list, so they show up in ↵Michael Shalayeff
netstat much better; this particular case showed up with more than one loopback configured in the kernel
1997-07-23AppleTalk support based on netatalk-1.4a2 and FreeBSD.denny
1996-06-29provide if_attachhead(), and make if_loop use itTheo de Raadt
1996-05-10if_name/if_unit -> if_xname/if_softcTheo de Raadt
1996-04-28IPX additions and fixes.Michael Shalayeff
ether -- missed the input for IPX. fddi -- just added. ppp -- field codes added. loop -- minor fix.
1996-04-24Add IPX support.Michael Shalayeff
1995-11-13do not forward garbled SIMPLEX-generated packets to bpf; from ↵Theo de Raadt
Jean-Luc.Richier@imag.fr; netbsd pr#1693
1995-10-18initial import of NetBSD treeTheo de Raadt