summaryrefslogtreecommitdiffstats
path: root/sys/netinet6/ip6_mroute.c
Commit message (Collapse)AuthorAgeFilesLines
* Clean up VCS Ids.obrien2007-12-101-6/+7
|
* Space cleanupdelphij2007-07-051-10/+10
| | | | Approved by: re (rwatson)
* ANSIfy[1] plus some style cleanup nearby.delphij2007-07-051-42/+16
| | | | | | Discussed with: gnn, rwatson Submitted by: Karl Sj?dahl - dunceor <dunceor gmail com> [1] Approved by: re (rwatson)
* Add comments about common idioms for cleanup pass at a later date.bms2007-02-281-0/+3
|
* Remove code which would never be used, viz a viz Quality-of-Service;bms2007-02-281-17/+1
| | | | | the token bucket filter got killed in netinet, so it gets killed here too. Correct comments.
* Add a comment about a struct which needs to be global.bms2007-02-281-11/+8
| | | | | Remove an unused global variable. Staticize variables which do not need to be global.
* Fix tinderbox. ip6_mrouter should be defined in raw_ip6.c as it isbms2007-02-241-2/+1
| | | | | | | tested to determine if the userland socket is open; this, in turn, is used to determine if the module has been loaded. Tested with: LINT
* Make IPv6 multicast forwarding dynamically loadable from a GENERIC kernel.bms2007-02-241-15/+48
| | | | | | It is built in the same module as IPv4 multicast forwarding, i.e. ip_mroute.ko, if and only if IPv6 support is enabled for loadable modules. Export IPv6 forwarding structs to userland netstat(1) via sysctl(9).
* MFp4: 92972, 98913 + one more changebz2006-12-121-38/+60
| | | | | | | In ip6_sprintf no longer use and return one of eight static buffers for printing/logging ipv6 addresses. The caller now has to hand in a sufficiently large buffer as first argument.
* With exception of the if_name() macro, all definitions in net_osdep.hbrooks2006-08-041-2/+0
| | | | | | | | were unused or already in if_var.h so add if_name() to if_var.h and remove net_osdep.h along with all references to it. Longer term we may want to kill off if_name() entierly since all modern BSDs have if_xname variables rendering it unnecessicary.
* ip6_mrouter_done(): use if_allmulti(0) for disabling the multicast ↵suz2006-04-101-7/+1
| | | | | | | promiscuous mode Obtained from: KAME MFC after: 2 days
* added a note about the assumption for m->m_pkthdr.rcvifsuz2006-01-091-0/+8
| | | | | Obtained from: KAME MFC After: 1 day
* fixed a kernel crash at the initialization time of PIM-SM register interfacesuz2005-12-091-13/+30
| | | | MFC after: 2 days
* fixed a kernel crash when IPv6 PIM-SM routing is enabled and a PIM register ↵suz2005-10-171-9/+17
| | | | | | | message is received Obtained from: KAME MFC After: 3 days
* IPv6 was improperly defining its malloc type the same as IPv4 (M_IPMADDR,obrien2005-09-071-19/+19
| | | | | M_IPMOPTS, M_MRTABLE). Thus we had conflicting instantiations. Create an IPv6-specific type to overcome this.
* added a knob to enable path MTU discovery for multicast packets.ume2005-08-131-13/+19
| | | | | | | (by default, it is disabled) Submitted by: suz Obtained from: KAME
* fixed a kernel crash at the start-up time of an IPv6 multicast daemons osuz2005-08-101-0/+1
| | | | | | (e.g. pim6dd, pim6sd) MFC after: 3 days
* scope cleanup. with this changeume2005-07-251-14/+17
| | | | | | | | | | | | | | | | | | | - most of the kernel code will not care about the actual encoding of scope zone IDs and won't touch "s6_addr16[1]" directly. - similarly, most of the kernel code will not care about link-local scoped addresses as a special case. - scope boundary check will be stricter. For example, the current *BSD code allows a packet with src=::1 and dst=(some global IPv6 address) to be sent outside of the node, if the application do: s = socket(AF_INET6); bind(s, "::1"); sendto(s, some_global_IPv6_addr); This is clearly wrong, since ::1 is only meaningful within a single node, but the current implementation of the *BSD kernel cannot reject this attempt. Submitted by: JINMEI Tatuya <jinmei__at__isl.rdc.toshiba.co.jp> Obtained from: KAME
* /* -> /*- for license, minor formatting changes, separate for KAMEimp2005-01-071-2/+2
|
* Remove advertising clause from University of California Regent'simp2004-04-071-4/+0
| | | | | | | license, per letter dated July 22, 1999 and email from Peter Wemm, Alan Cox and Robert Watson. Approved by: core, peter, alc, rwatson
* Catch a few places where NULL (pointer) was used where 0 (integer) waspeter2003-12-231-1/+1
| | | | expected.
* validate the argument for multicast routing socket optionsume2003-12-101-27/+38
| | | | | | | correctly. Obtained from: KAME MFC after: 3 days
* Replace the if_name and if_unit members of struct ifnet with new membersbrooks2003-10-311-3/+4
| | | | | | | | | | | | | if_xname, if_dname, and if_dunit. if_xname is the name of the interface and if_dname/unit are the driver name and instance. This change paves the way for interface renaming and enhanced pseudo device creation and configuration symantics. Approved By: re (in principle) Reviewed By: njl, imp Tested On: i386, amd64, sparc64 Obtained From: NetBSD (if_xname)
* reduce calling in6_addr2zoneid().ume2003-10-221-6/+6
|
* - change scope to zone.ume2003-10-211-12/+21
| | | | | | | | - change node-local to interface-local. - better error handling of address-to-scope mapping. - use in6_clearscope(). Obtained from: KAME
* correct linkmtu handling.ume2003-10-201-2/+5
| | | | Obtained from: KAME
* - fix typo in comments.ume2003-10-081-42/+84
| | | | | | | | | | - style. - NULL is not 0. - some variables were renamed. - nuke unused logic. (there is no functional change.) Obtained from: KAME
* return(code) -> return (code)ume2003-10-061-68/+63
| | | | (reduce diffs against KAME)
* Back out M_* changes, per decision of the TRB.imp2003-02-191-1/+1
| | | | Approved by: trb
* Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0.alfred2003-01-211-1/+1
| | | | Merge M_NOWAIT/M_DONTWAIT into a single flag M_NOWAIT.
* fixed a bug that IPv6 multicast packet is not forwarded if its packet size ↵suz2002-12-161-1/+1
| | | | | | | | is equal to the outgoing interface's MTU Approved by: re Obtained from: KAME MFC after: 3 days
* Replace aux mbufs with packet tags:sam2002-10-161-1/+1
| | | | | | | | | | | | | | | | | | | o instead of a list of mbufs use a list of m_tag structures a la openbsd o for netgraph et. al. extend the stock openbsd m_tag to include a 32-bit ABI/module number cookie o for openbsd compatibility define a well-known cookie MTAG_ABI_COMPAT and use this in defining openbsd-compatible m_tag_find and m_tag_get routines o rewrite KAME use of aux mbufs in terms of packet tags o eliminate the most heavily used aux mbufs by adding an additional struct inpcb parameter to ip_output and ip6_output to allow the IPsec code to locate the security policy to apply to outbound packets o bump __FreeBSD_version so code can be conditionalized o fixup ipfilter's call to ip_output based on __FreeBSD_version Reviewed by: julian, luigi (silent), -arch, -net, darren Approved by: julian, silence from everyone else Obtained from: openbsd (mostly) MFC after: 1 month
* Replace (ab)uses of "NULL" where "0" is really meant.archie2002-08-221-1/+1
|
* Back out my lats commit of locking down a socket, it conflicts with hsu's work.tanimura2002-05-311-2/+0
| | | | Requested by: hsu
* Lock down a socket, milestone 1.tanimura2002-05-201-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | o Add a mutex (sb_mtx) to struct sockbuf. This protects the data in a socket buffer. The mutex in the receive buffer also protects the data in struct socket. o Determine the lock strategy for each members in struct socket. o Lock down the following members: - so_count - so_options - so_linger - so_state o Remove *_locked() socket APIs. Make the following socket APIs touching the members above now require a locked socket: - sodisconnect() - soisconnected() - soisconnecting() - soisdisconnected() - soisdisconnecting() - sofree() - soref() - sorele() - sorwakeup() - sotryfree() - sowakeup() - sowwakeup() Reviewed by: alfred
* Revert the change of #includes in sys/filedesc.h and sys/socketvar.h.tanimura2002-04-301-6/+9
| | | | | | | | | | Requested by: bde Since locking sigio_lock is usually followed by calling pgsigio(), move the declaration of sigio_lock and the definitions of SIGIO_*() to sys/signalvar.h. While I am here, sort include files alphabetically, where possible.
* 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
* double m_free() - not critical. from niklas@openbsdume2002-03-291-3/+1
| | | | | Obtained from: KAME MFC after: 1 week
* Removed a wrong comment.sumikawa2001-09-201-5/+0
| | | | | Obtained from: KAME MFC after: 1 week
* Wrap array accesses in macros, which also happen to be lvalues:jlemon2001-09-061-1/+1
| | | | | | | ifnet_addrs[i - 1] -> ifaddr_byindex(i) ifindex2ifnet[i] -> ifnet_byindex(i) This is intended to ease the conversion to SMPng.
* Sync with recent KAME.ume2001-06-111-114/+132
| | | | | | | | | | | | | | | | | | 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 typo: seperate -> separate.asmodai2001-02-061-1/+1
| | | | Seperate does not exist in the english language.
* kame 1.32 -> 1.33itojun2000-10-231-1/+27
| | | | | | | | | in add_m6fc(), set interface list for all cases. in response to a report from Hoerdt Mickael. kame 1.31 -> 1.32 discard PIM register if the version of the inner packet is incorrect (i.e. IPv6) (according to clarfication of recent discussion in the IETF pim ML)
* sync with kame tree as of july00. tons of bug fixes/improvements.itojun2000-07-041-110/+222
| | | | | | | 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
|
* Sorry I didn't commit these files at the commit just a few minutes before.shin2000-01-281-0/+1661
(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.
OpenPOWER on IntegriCloud