summaryrefslogtreecommitdiff
path: root/sys/netinet6/ip6_output.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove duplicate extern declarations to silence warnings.Alfred Perlstein2002-03-191-3/+0
| | | | Notes: svn path=/head/; revision=92716
* - Replace M_WAIT with M_TRYWAIT since the M_WAIT flag is deprecated.Andrew R. Reiter2001-12-091-1/+1
| | | | | | | Spotted by: bde Notes: svn path=/head/; revision=87565
* KSE Milestone 2Julian Elischer2001-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 Notes: svn path=/head/; revision=83366
* Wrap array accesses in macros, which also happen to be lvalues:Jonathan Lemon2001-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. Notes: svn path=/head/; revision=83130
* soopt_mcopyout() frees mbuf if error occurs, and DOES NOT free it if it isHajimu UMEMOTO2001-07-081-2/+6
| | | | | | | | | | | successful. This part was lacked during merge. Obtained from: KAME MFC after: 1 week Notes: svn path=/head/; revision=79426
* The m_free call in the ip6_fw_ctl_ptr == NULL case apparentlyHajimu UMEMOTO2001-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> Notes: svn path=/head/; revision=79404
* disallow setsockopt(IPV6_V6ONLY) for already bound sockets.Hajimu UMEMOTO2001-06-241-0/+11
| | | | | | | | Obtained from: KAME MFC after: 10 days Notes: svn path=/head/; revision=78721
* decrease warningHajimu UMEMOTO2001-06-241-2/+4
| | | | | | | | Obtained from: KAME MFC after: 10 days Notes: svn path=/head/; revision=78703
* Nuke the comment about MIP6. We don't have MIP6 code, yet.Hajimu UMEMOTO2001-06-241-12/+0
| | | | | | | MFC after: 10 days Notes: svn path=/head/; revision=78702
* Sync with recent KAME.Hajimu UMEMOTO2001-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 Notes: svn path=/head/; revision=78064
* Fix memory leak.Hajimu UMEMOTO2001-05-231-0/+2
| | | | | | | Submitted by: itojun Notes: svn path=/head/; revision=77065
* When ip6_fw_ctl() or soopt_mcopyout() return without success,Hajimu UMEMOTO2001-01-201-1/+1
| | | | | | | | | don't free mbuf. It is already freed by these routins. PR: kern/24248 Notes: svn path=/head/; revision=71305
* * Rename M_WAIT mbuf subsystem flag to M_TRYWAIT.Bosko Milekic2000-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. Notes: svn path=/head/; revision=70254
* Move suser() and suser_xxx() prototypes and a related #define fromPoul-Henning Kamp2000-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>. Notes: svn path=/head/; revision=67893
* Count per-address statistics for IP fragments.Josef Karthauser2000-10-291-0/+6
| | | | | | | | Requested by: ru Obtained from: BSD/OS Notes: svn path=/head/; revision=67833
* Augment the 'ifaddr' structure with a 'struct if_data' to keepJosef Karthauser2000-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. Notes: svn path=/head/; revision=67334
* Make ip6fw as loadable module.Hajimu UMEMOTO2000-09-231-9/+1
| | | | Notes: svn path=/head/; revision=66303
* Make compilable with -DIPFILTER.Hajimu UMEMOTO2000-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 Notes: svn path=/head/; revision=64558
* activate pfil_hooks and covert ipfilter to use itDarren Reed2000-07-311-0/+28
| | | | Notes: svn path=/head/; revision=64060
* sync with kame tree as of july00. tons of bug fixes/improvements.Jun-ichiro itojun Hagino2000-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) Notes: svn path=/head/; revision=62587
* Just need to pass the address family to if_simloop(), not the whole sockaddr.Archie Cobbs2000-05-241-1/+1
| | | | Notes: svn path=/head/; revision=60889
* Initialize mbuf pointer at getting ipsec policy.Yoshinobu Inoue2000-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 Notes: svn path=/head/; revision=57855
* CMSG_XXX macros alignment fixes to follow RFC2292.Yoshinobu Inoue2000-03-031-2/+2
| | | | | | | | | | Approved by: jkh Submitted by: Partly from tech@openbsd Reviewed by: itojun Notes: svn path=/head/; revision=57719
* Add ip6fw.Yoshinobu Inoue2000-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 Notes: svn path=/head/; revision=56815
* Backout diffs which should not be included.Yoshinobu Inoue2000-01-281-1/+0
| | | | Notes: svn path=/head/; revision=56743
* #This is a null commit to give correct description for the previous change.Yoshinobu Inoue2000-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 Notes: svn path=/head/; revision=56738
* Sorry I didn't commit these files at the commit just a few minutes before.Yoshinobu Inoue2000-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. Notes: svn path=/head/; revision=56723
* added missing IPV6_PORTRANGE case.Yoshinobu Inoue2000-01-131-0/+1
| | | | Notes: svn path=/head/; revision=55872
* IPSEC support in the kernel.Yoshinobu Inoue1999-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 Notes: svn path=/head/; revision=55009
* Change incorrect NULLs to 0sEivind Eklund1999-12-211-3/+3
| | | | Notes: svn path=/head/; revision=54952
* rtcalloc() is removed because it turned out not to be necessary for FreeBSD.Yoshinobu Inoue1999-12-091-7/+3
| | | | | | | | | (It was added as a part of KAME patch) Specified by: jdp@polstra.com Notes: svn path=/head/; revision=54350
* udp IPv6 support, IPv6/IPv4 tunneling support in kernel,Yoshinobu Inoue1999-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 Notes: svn path=/head/; revision=54263
* Removed IPSEC and IPV6FIREWALL because they are not ready yet.Yoshinobu Inoue1999-11-231-2/+0
| | | | Notes: svn path=/head/; revision=53626
* KAME netinet6 basic part(no IPsec,no V6 Multicast Forwarding, no UDP/TCPYoshinobu Inoue1999-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 Notes: svn path=/head/; revision=53541