History log of /dragonfly/sys/netinet/ip_icmp.c (Results 26 – 50 of 63)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: v3.0.2, v3.0.1, v3.1.0, v3.0.0
# 4090d6ff 03-Jan-2012 Sascha Wildner <saw@online.de>

kernel: Use NULL for pointers.


# 86d7f5d3 26-Nov-2011 John Marino <draco@marino.st>

Initial import of binutils 2.22 on the new vendor branch

Future versions of binutils will also reside on this branch rather
than continuing to create new binutils branches for each new version.


Revision tags: v2.12.0, v2.13.0, v2.10.1, v2.11.0, v2.10.0, v2.9.1, v2.8.2, v2.8.1, v2.8.0, v2.9.0, v2.6.3, v2.7.3, v2.6.2, v2.7.2, v2.7.1, v2.6.1, v2.7.0, v2.6.0, v2.5.1, v2.4.1, v2.5.0, v2.4.0, v2.3.2
# b6b45528 07-Jun-2009 Sepherosa Ziehau <sephe@dragonflybsd.org>

icmp: Bring in reply_src and reply_from_interface sysctl nodes.

They act as fallback mechanism if proper inet address could not
be found on the packet incoming interface.

reply_from_interface:

icmp: Bring in reply_src and reply_from_interface sysctl nodes.

They act as fallback mechanism if proper inet address could not
be found on the packet incoming interface.

reply_from_interface:
icmp reply from incoming interface for non-local packets
reply_src:
icmp reply source for non-local packets

Obtained-from: FreeBSD

show more ...


Revision tags: v2.3.1, v2.2.1
# 60233e58 05-Apr-2009 Sascha Wildner <saw@online.de>

Generally use NULL instead of explicitly casting 0 to some pointer type.


Revision tags: v2.2.0, v2.3.0, v2.1.1
# e3873585 27-Oct-2008 Sepherosa Ziehau <sephe@dragonflybsd.org>

pr_ctlinput is usually called when certains types of ICMP packets are received.
However, the processing of ICMP packets happens in netisr0, which means the
thread context, in which pr_ctlinput is cal

pr_ctlinput is usually called when certains types of ICMP packets are received.
However, the processing of ICMP packets happens in netisr0, which means the
thread context, in which pr_ctlinput is called, is not correct. To handle this
following two fixes are applied:
- Add pr_ctlport to protosw and ip6protosw, which could be used to locate
correct msgport to call pr_ctlinput for specific protocol
- All necessary information needed by pr_ctlinput are gather into one netmsg,
and this netmsg is delivered synchronously (some information is on the stack)

Note for new protocol implementation:
pr_ctlinput and pr_ctlport should be both NULL or both non-NULL.

Obtained-from: dillon@
Tested-by: pavalos@

show more ...


Revision tags: v2.0.1
# 7e31206a 23-Aug-2008 Sepherosa Ziehau <sephe@dragonflybsd.org>

Save srcroute options in a mtag associated the mbuf, mainly to eliminate two
"ugly" global variables -- ip_nhops and ip_srcrt.

Obtained-from: FreeBSD


# f8983475 09-Jun-2008 Sepherosa Ziehau <sephe@dragonflybsd.org>

Parallelize in_ifaddrhashtbl


# 91be174d 27-May-2008 Matthew Dillon <dillon@dragonflybsd.org>

* Implement SOCK_SEQPACKET sockets for local communications. These sockets
operate like SOCK_STREAM but each write() builds a record and each read()
reads a record. That is, the data is not agg

* Implement SOCK_SEQPACKET sockets for local communications. These sockets
operate like SOCK_STREAM but each write() builds a record and each read()
reads a record. That is, the data is not aggregated together or allowed
to be partially read.

This allows local sockets to have the same packetization characteristics
as if_tap when desired.

* Add a feature to the vkernel which allows a unix domain socket to be
specified for the network interface rather then a TAP interface. The
vkernel will connect to the socket using SOCK_SEQPACKET and read and
write packets to it.

* Clean up some libc/kernel namespace collisions related to including
sys/socket.h.

show more ...


# b2632176 07-Mar-2008 Sepherosa Ziehau <sephe@dragonflybsd.org>

Parallelize ifnet.if_addrhead accessing by duplicating the list itself
on each CPU, each list element points to ifaddr:
- Add SI_SUB_PRE_DRIVERS before SI_SUB_DRIVERS, so action could be taken
befo

Parallelize ifnet.if_addrhead accessing by duplicating the list itself
on each CPU, each list element points to ifaddr:
- Add SI_SUB_PRE_DRIVERS before SI_SUB_DRIVERS, so action could be taken
before drivers' initialization (mainly before NIC driver's if_attach())
- Move netisr_init() to the FIRST of SI_SUB_PRE_DRIVERS, so that
netmsg_service_port_init() could be called in earlier stage of system
initialization.
- Create one thread on each CPU to propagate changes to ifnet.if_addrhead.
Their thread ports are registered with netmsg_service_port_init() for
port syncing operation.
- Change to ifnet.if_addrhead begins in netisr0, i.e. serial of changes
to ifnet.if_addrhead are serialized by netisr0
- ifaddr's refcnt is moved to its list elements, i.e. per-CPU refcnt.
They are initialized to 1 instead of 0.
- A magic field is added to ifaddr list element to make sure that IFAREF
and IFAFREE are called on valid ifaddr list element. This field is
initialized to a magic value and is wiped out once the list element's
refcnt drops to 0
- To close the gap between testing and freeing, once the ifaddr list
element's refcnt drops to 0, ifa_portfn(0) (a thread's port on CPU0) is
poked to check whether ifaddr is referenced on other CPUs, if not, then
ifaddr is freed on ifa_portfn(0)

Reviewed-by: dillon@ (earlier version)

show more ...


# f2c2ec09 19-Dec-2007 Sepherosa Ziehau <sephe@dragonflybsd.org>

Generalize PF_MBUF_GENERATED mbuf firewall flag


# a6ec04bc 22-Dec-2006 Sascha Wildner <swildner@dragonflybsd.org>

Rename printf -> kprintf in sys/ and add some defines where necessary
(files which are used in userland, too).


# f3f70f0d 14-Jan-2006 Sascha Wildner <swildner@dragonflybsd.org>

* Remove (void) casts for discarded return values.

* Put function types on separate lines.

* Ansify function definitions.

* Remove __P.

In-collaboration-with: Alexey Slynko <slynko@tronet.ru>


# 981773b8 28-Oct-2005 Liam J. Foy <liamfoy@dragonflybsd.org>

- Dont pass a complete interface struct to icmp_error, just pass the mtu.

Obtained from: OpenBSD Camp
Ok'ed: dillon


# ac372b95 11-Aug-2005 Liam J. Foy <liamfoy@dragonflybsd.org>

- In the ICMP debug code, use %d over %x. This makes it much easier when
reading ip_icmp.h when the debug code is used.

OK: hsu


# 7d448528 06-Mar-2005 Jeffrey Hsu <hsu@dragonflybsd.org>

Minimal patch that allows Path MTU discovery to be turned back on, but
leave it off by default.

Tested by: Hiroki Sato, Dave Rhodus, Yonetani Tomokazu, Matt Dillon,
Andrew Atrens,


# f6870fe3 04-Mar-2005 Jeffrey Hsu <hsu@dragonflybsd.org>

None of the callers of rtredirect() want to know the route that was modified,
so remove the last argument to rtredirect() in order to simplify reasoning
about route reference counts.


# 4d723e5a 11-Feb-2005 Joerg Sonnenberger <joerg@dragonflybsd.org>

Import ALTQ support from KAME. This is based on the FreeBSD 4 snapshot.
This includes neither the ALTQ3 compat code nor the !DragonFly defines.
The macros have been replaced with inline functions in

Import ALTQ support from KAME. This is based on the FreeBSD 4 snapshot.
This includes neither the ALTQ3 compat code nor the !DragonFly defines.
The macros have been replaced with inline functions in net/ifq_var.h.

This also renames pkthdr.pf_flags as it is intended as general flag bit.
Currently supported are ppp(4), sppp(4), tun(4) and wi(4), more drivers
are coming later.

Reviewed-by: corecode, dillon, hsu
Comments-from: hmp

show more ...


# f3ed2586 06-Jan-2005 Jeffrey Hsu <hsu@dragonflybsd.org>

Now that I understand the poorly written BSD routing code and what
it was trying to do, rewrite it in a clear and concise manner.

The old rtalloc1() code written by CSRG had a number of problems:

Now that I understand the poorly written BSD routing code and what
it was trying to do, rewrite it in a clear and concise manner.

The old rtalloc1() code written by CSRG had a number of problems:
1. it was not clear which route was being returned
2. it was not clear what was being reported
3. it hid the essential radix tree lookup operation inside a series of
conditional tests and inline assignments
4. it had multiple gotos to the inside of if statements
5. it intermixed reporting code with the operational logic of lookup
and cloning
6. it assigns multiple times to key variables
7. it has unnecessary assignments to key variables
8. it overloaded the "report" argument parameter, to have two
different semantics
9. it misnamed the key route lookup function "rtalloc1", obscuring all uses
of route lookup.

In contrast to the rtalloc1 code in FreeBSD 4 or the even more convoluted
rtalloc1 code in FreeBSD 5, the DragonFlyBSD version
A. has a clear control flow that makes the common case obvious
by highlighting the core call to the radix tree look up function,
eliminating gotos into if statements,
and completely separating out the special-case cloning logic
B. makes it clear which route is being returned
by only assigning once to the key "rt" variable
and by expliciting returning "rt" or "clonedroute"
C. abstracts out the reporting code into its own reporting API
D. cleans up the semantics of the "report" argument parameter to
only indicate whether to report a miss and not whether to clone
E. introduces a simple single-argument API for caller that want to clone
and those that do not.

show more ...


# 0c3c561c 06-Jan-2005 Jeffrey Hsu <hsu@dragonflybsd.org>

Cosmetic cleanups.


# 407e896e 29-Dec-2004 Jeffrey Hsu <hsu@dragonflybsd.org>

Forced commit to say the previous commit wasn't really a buffer overflow
after all, but the code is more uniform this way, so leave it like this,
except for ipsec.c where we use the standard libkern

Forced commit to say the previous commit wasn't really a buffer overflow
after all, but the code is more uniform this way, so leave it like this,
except for ipsec.c where we use the standard libkern inet_ntoa() instead of
defining a private copy.

show more ...


# 1141eb20 29-Dec-2004 Jeffrey Hsu <hsu@dragonflybsd.org>

Fix buffer overflow bug involving inet_ntoa().


# b7929e5c 28-Dec-2004 Liam J. Foy <liamfoy@dragonflybsd.org>

Equivalent to: FreeBSD rev 1.82

Ok'ed by: hsu@


# f23061d4 21-Dec-2004 Jeffrey Hsu <hsu@dragonflybsd.org>

Clean up the routing and networking code before I parallelize routing.


# bf844ffa 15-Oct-2004 Jeffrey Hsu <hsu@dragonflybsd.org>

Update includes now that the Fast IPSec code has moved to netproto/ipsec.

Submitted by: Pawel Biernacki <kaktus@dragonflybsd.pl>


# 02742ec6 19-Sep-2004 Joerg Sonnenberger <joerg@dragonflybsd.org>

Kernel part of PF

Ported-by:
- Max Layer (original patch set, FreeBSD PF maintainer)
- Devon O'Dell, Simon 'corecode' Schubert (integration and DragonFly specific
changes)

In contrast to FreeBSD

Kernel part of PF

Ported-by:
- Max Layer (original patch set, FreeBSD PF maintainer)
- Devon O'Dell, Simon 'corecode' Schubert (integration and DragonFly specific
changes)

In contrast to FreeBSD and OpenBSD, use direct flags in pkthdr instead of
m_tags. This reduces allocation and processing overhead.

Keep the IP header in Host Byte Order like the rest of the tree assumes.

Module support has a memory leak for vm_zones when unloading pf.ko.

show more ...


123