summaryrefslogtreecommitdiffstats
path: root/sys/netinet6/ip6_output.c
Commit message (Collapse)AuthorAgeFilesLines
* Replace (ab)uses of "NULL" where "0" is really meant.archie2002-08-221-5/+5
|
* make sure to set/unset INP_IPV4 according to a valueume2002-07-241-0/+4
| | | | | | of IN6P_IPV6_V6ONLY Reviewed by: Keiichi SHIMA <keiichi@iij.ad.jp>
* do not refer to IN6P_BINDV6ONLY anymore.ume2002-07-221-7/+1
| | | | | Obtained from: KAME MFC after: 1 week
* just merged cosmetic changes from KAME to ease sync between KAME and FreeBSD.suz2002-04-191-11/+12
| | | | | | | (based on freebsd4-snap-20020128) Reviewed by: ume MFC after: 1 week
* Change the suser() API to take advantage of td_ucred as well as do ajhb2002-04-011-4/+4
| | | | | | | | | | | | general cleanup of the API. The entire API now consists of two functions similar to the pre-KSE API. The suser() function takes a thread pointer as its only argument. The td_ucred member of this thread must be valid so the only valid thread pointers are curthread and a few kernel threads such as thread0. The suser_cred() function takes a pointer to a struct ucred as its first argument and an integer flag as its second argument. The flag is currently only used for the PRISON_ROOT flag. Discussed on: smp@
* Fix cached route problem.ume2002-03-291-0/+1
| | | | | | Submitted by: Keiichi SHIMA <keiichi@iij.ad.jp> (KAME) Reviewed by: JINMEI Tatuya <jinmei@isl.rdc.toshiba.co.jp> (KAME) MFC after: 1 week
* Remove duplicate extern declarations to silence warnings.alfred2002-03-191-3/+0
|
* - Replace M_WAIT with M_TRYWAIT since the M_WAIT flag is deprecated.arr2001-12-091-1/+1
| | | | Spotted by: bde
* KSE Milestone 2julian2001-09-121-9/+10
| | | | | | | | | | | | | | Note ALL MODULES MUST BE RECOMPILED make the kernel aware that there are smaller units of scheduling than the process. (but only allow one thread per process at this time). This is functionally equivalent to teh previousl -current except that there is a thread associated with each process. Sorry john! (your next MFC will be a doosie!) Reviewed by: peter@freebsd.org, dillon@freebsd.org X-MFC after: ha ha ha ha
* Wrap array accesses in macros, which also happen to be lvalues:jlemon2001-09-061-6/+6
| | | | | | | ifnet_addrs[i - 1] -> ifaddr_byindex(i) ifindex2ifnet[i] -> ifnet_byindex(i) This is intended to ease the conversion to SMPng.
* soopt_mcopyout() frees mbuf if error occurs, and DOES NOT free it if it isume2001-07-081-2/+6
| | | | | | | | successful. This part was lacked during merge. Obtained from: KAME MFC after: 1 week
* The m_free call in the ip6_fw_ctl_ptr == NULL case apparentlyume2001-07-071-2/+0
| | | | | | | | tries to free uninitialized mbuf. This was my mistake during recent KAME merge. This part is for *BSD other than FreeBSD. Submitted by: Alexander N. Kabaev <ak03@gte.com>
* disallow setsockopt(IPV6_V6ONLY) for already bound sockets.ume2001-06-241-0/+11
| | | | | Obtained from: KAME MFC after: 10 days
* decrease warningume2001-06-241-2/+4
| | | | | Obtained from: KAME MFC after: 10 days
* Nuke the comment about MIP6. We don't have MIP6 code, yet.ume2001-06-241-12/+0
| | | | MFC after: 10 days
* Sync with recent KAME.ume2001-06-111-244/+556
| | | | | | | | | | | | | | | | | | This work was based on kame-20010528-freebsd43-snap.tgz and some critical problem after the snap was out were fixed. There are many many changes since last KAME merge. TODO: - The definitions of SADB_* in sys/net/pfkeyv2.h are still different from RFC2407/IANA assignment because of binary compatibility issue. It should be fixed under 5-CURRENT. - ip6po_m member of struct ip6_pktopts is no longer used. But, it is still there because of binary compatibility issue. It should be removed under 5-CURRENT. Reviewed by: itojun Obtained from: KAME MFC after: 3 weeks
* Fix memory leak.ume2001-05-231-0/+2
| | | | Submitted by: itojun
* When ip6_fw_ctl() or soopt_mcopyout() return without success,ume2001-01-201-1/+1
| | | | | | don't free mbuf. It is already freed by these routins. PR: kern/24248
* * Rename M_WAIT mbuf subsystem flag to M_TRYWAIT.bmilekic2000-12-211-2/+2
| | | | | | | | | | | | | | | | | | This is because calls with M_WAIT (now M_TRYWAIT) may not wait forever when nothing is available for allocation, and may end up returning NULL. Hopefully we now communicate more of the right thing to developers and make it very clear that it's necessary to check whether calls with M_(TRY)WAIT also resulted in a failed allocation. M_TRYWAIT basically means "try harder, block if necessary, but don't necessarily wait forever." The time spent blocking is tunable with the kern.ipc.mbuf_wait sysctl. M_WAIT is now deprecated but still defined for the next little while. * Fix a typo in a comment in mbuf.h * Fix some code that was actually passing the mbuf subsystem's M_WAIT to malloc(). Made it pass M_WAITOK instead. If we were ever to redefine the value of the M_WAIT flag, this could have became a big problem.
* Move suser() and suser_xxx() prototypes and a related #define fromphk2000-10-291-1/+0
| | | | | | | | | <sys/proc.h> to <sys/systm.h>. Correctly document the #includes needed in the manpage. Add one now needed #include of <sys/systm.h>. Remove the consequent 48 unused #includes of <sys/proc.h>.
* Count per-address statistics for IP fragments.joe2000-10-291-0/+6
| | | | | Requested by: ru Obtained from: BSD/OS
* Augment the 'ifaddr' structure with a 'struct if_data' to keepjoe2000-10-191-1/+7
| | | | | | | | | | | statistics on a per network address basis. Teach the IPv4 and IPv6 input/output routines to log packets/bytes against the network address connected to the flow. Teach netstat to display the per-address stats for IP protocols when 'netstat -i' is evoked, instead of displaying the per-interface stats.
* Make ip6fw as loadable module.ume2000-09-231-9/+1
|
* Make compilable with -DIPFILTER.ume2000-08-121-1/+6
| | | | | | | Because I don't use ipfilter at all, this is not tested. I don't know if ipfilter is work for IPv6. Submitted by: yoshiaki@kt.rim.or.jp
* activate pfil_hooks and covert ipfilter to use itdarrenr2000-07-311-0/+28
|
* sync with kame tree as of july00. tons of bug fixes/improvements.itojun2000-07-041-159/+180
| | | | | | | API changes: - additional IPv6 ioctls - IPsec PF_KEY API was changed, it is mandatory to upgrade setkey(8). (also syntax change)
* Just need to pass the address family to if_simloop(), not the whole sockaddr.archie2000-05-241-1/+1
|
* Initialize mbuf pointer at getting ipsec policy.shin2000-03-091-8/+6
| | | | | | | | | | Without this, kernel will panic at getsockopt() of IPSEC_POLICY. Also make compilable libipsec/test-policy.c which tries getsockopt() of IPSEC_POLICY. Approved by: jkh Submitted by: sakane@kame.net
* CMSG_XXX macros alignment fixes to follow RFC2292.shin2000-03-031-2/+2
| | | | | | | Approved by: jkh Submitted by: Partly from tech@openbsd Reviewed by: itojun
* Add ip6fw.shin2000-01-291-0/+1
| | | | | | | | | | Yes it is almost code freeze, but as the result of many thought, now I think this should be added before 4.0... make world check, kernel build check is done. Reviewed by: green Obtained from: KAME project
* Backout diffs which should not be included.shin2000-01-281-1/+0
|
* #This is a null commit to give correct description for the previous change.shin2000-01-281-0/+1
| | | | | | | | | | | | | | | | | | #Please forget the strange log message of the previous commit . IPv6 multicast routing. kernel IPv6 multicast routing support. pim6 dense mode daemon pim6 sparse mode daemon netstat support of IPv6 multicast routing statistics Merging to the current and testing with other existing multicast routers is done by Tatsuya Jinmei <jinmei@kame.net>, who writes and maintainances the base code in KAME distribution. Make world check and kernel build check was also successful. Obtained from: KAME project
* Sorry I didn't commit these files at the commit just a few minutes before.shin2000-01-281-0/+19
| | | | | | (IPv6 multicast routing) I think I mistakenly touched TAB and the last arg sys/netinet6 to the cvs commit changed to sys/netinet6/in6_proto.c.
* added missing IPV6_PORTRANGE case.shin2000-01-131-0/+1
|
* IPSEC support in the kernel.shin1999-12-221-12/+17
| | | | | | | | pr_input() routines prototype is also changed to support IPSEC and IPV6 chained protocol headers. Reviewed by: freebsd-arch, cvs-committers Obtained from: KAME project
* Change incorrect NULLs to 0seivind1999-12-211-3/+3
|
* rtcalloc() is removed because it turned out not to be necessary for FreeBSD.shin1999-12-091-7/+3
| | | | | | (It was added as a part of KAME patch) Specified by: jdp@polstra.com
* udp IPv6 support, IPv6/IPv4 tunneling support in kernel,shin1999-12-071-12/+4
| | | | | | | | | | packet divert at kernel for IPv6/IPv4 translater daemon This includes queue related patch submitted by jburkhol@home.com. Submitted by: queue related patch from jburkhol@home.com Reviewed by: freebsd-arch, cvs-committers Obtained from: KAME project
* Removed IPSEC and IPV6FIREWALL because they are not ready yet.shin1999-11-231-2/+0
|
* KAME netinet6 basic part(no IPsec,no V6 Multicast Forwarding, no UDP/TCPshin1999-11-221-0/+2176
for IPv6 yet) With this patch, you can assigne IPv6 addr automatically, and can reply to IPv6 ping. Reviewed by: freebsd-arch, cvs-committers Obtained from: KAME project
OpenPOWER on IntegriCloud