| Commit message (Collapse) | Author | Age | Files | Lines |
| ... | |
| |
|
|
| |
Notes:
svn path=/head/; revision=175717
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
previously conditionally acquired Giant based on debug.mpsafenet. As that
has now been removed, they are no longer required. Removing them
significantly simplifies error-handling in the socket layer, eliminated
quite a bit of unwinding of locking in error cases.
While here clean up the now unneeded opt_net.h, which previously was used
for the NET_WITH_GIANT kernel option. Clean up some related gotos for
consistency.
Reviewed by: bz, csjp
Tested by: kris
Approved by: re (kensmith)
Notes:
svn path=/head/; revision=171744
|
| |
|
|
|
|
|
|
|
|
|
| |
This will increase the memory consumption for more than 1 Mb, but this
is required for operation on multiinterface access concentrators running
mpd.
Requested by: Alexander Motin
Notes:
svn path=/head/; revision=167990
|
| |
|
|
|
|
|
|
| |
PR: kern/101162
Submitted by: CoolDavid (Tseng Guo-Fu) <cooldavid cdpa.nsysu.edu.tw>
Notes:
svn path=/head/; revision=163247
|
| |
|
|
| |
Notes:
svn path=/head/; revision=163241
|
| |
|
|
|
|
|
| |
Submitted by: maxim
Notes:
svn path=/head/; revision=163240
|
| |
|
|
| |
Notes:
svn path=/head/; revision=163239
|
| |
|
|
|
|
|
| |
Submitted by: Alexander Motin <mav alkar.net>
Notes:
svn path=/head/; revision=163238
|
| |
|
|
| |
Notes:
svn path=/head/; revision=163234
|
| |
|
|
|
|
|
| |
No functional changes.
Notes:
svn path=/head/; revision=158028
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
sampling_interval) fields in netflow v5 header. We do not use
them but some netflow tools show garbage.
PR: kern/96296
Submitted by: David Duchscher
Approved by: glebius
MFC after: 1 week
Notes:
svn path=/head/; revision=158027
|
| |
|
|
|
|
|
|
|
| |
- Regroup softc so that frequently used elements are
grouped in the beginning, while the interfaces
array is at the end.
Notes:
svn path=/head/; revision=155468
|
| |
|
|
|
|
|
| |
Found with: Coverity Prevent(tm)
Notes:
svn path=/head/; revision=154354
|
| |
|
|
|
|
|
|
|
|
| |
in flags. When sending export datagram from expiry thread, then
use default zero flags. This removes unpleasant contention of the
interrupt thread on mutexes (usually ng_ksocket's socket buffer
mutex).
Notes:
svn path=/head/; revision=154277
|
| |
|
|
|
|
|
| |
bump type cookie.
Notes:
svn path=/head/; revision=154267
|
| |
|
|
|
|
|
|
|
| |
or with "out" hook, and clear the right pointer.
Reported by: Vitaliy Ovsyannikov <V.Ovsyannikov kr.ru>
Notes:
svn path=/head/; revision=153791
|
| |
|
|
|
|
|
|
|
|
|
|
| |
network byte order.
- Update the flow sequence in one atomic op instead of two.
Reported by: Denis Shaposhnikov <dsh vlink.ru>
Reported by: Daniil Kharoun <kdl chelcom.ru>
PR: kern/89417
Notes:
svn path=/head/; revision=152847
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Prefer '_' to ' ', as it results in more easily parsed results in
memory monitoring tools such as vmstat.
- Remove punctuation that is incompatible with using memory type names
as file names, such as '/' characters.
- Disambiguate some collisions by adding subsystem prefixes to some
memory types.
- Generally prefer lower case to upper case.
- If the same type is defined in multiple architecture directories,
attempt to use the same name in additional cases.
Not all instances were caught in this change, so more work is required to
finish this conversion. Similar changes are required for UMA zone names.
Notes:
svn path=/head/; revision=151897
|
| |
|
|
| |
Notes:
svn path=/head/; revision=148091
|
| |
|
|
| |
Notes:
svn path=/head/; revision=146285
|
| |
|
|
|
|
|
| |
- Adjust comments and variables names in nfinfo.
Notes:
svn path=/head/; revision=146139
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The most significant changes are:
- Use UMA zone instead of own chunk of memory.
- Lock each hash entry separately.
- Expire items "actively" - interrupt method can expire flows
from hash slot, when it searches through it.
- Remove global tailqueue. Make callout thread search through
every hash slot.
- Export datagram is detached from private data and filled. If
it is incomplete, it is attached back. Another thread will
continue working with it.
Lesser, but also important speedups:
- Flows in hash slot are stored in tailqueue. Whenever a flow is
hit, it is moved to the begging, so it can be located quicker.
- When callout thread works with hash slot it bails out if
slot mutex is contested.
Notes:
svn path=/head/; revision=146092
|
| |
|
|
| |
Notes:
svn path=/head/; revision=144901
|
| |
|
|
|
|
|
| |
hook(s). Data received on these hook(s) is sent back to ifaceX hook(s).
Notes:
svn path=/head/; revision=143988
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
be pass-thru mode, when traffic is not copied by ng_tee, but passed thru
ng_netflow.
Changes made:
- In ng_netflow_rcvdata() do all necessary pulluping: Ethernet header,
IP header, and TCP/UDP header.
- Pass only pointer to struct ip to ng_netflow_flow_add(). Any TCP/UDP
headers are guaranteed to by after it.
- Merge make_flow_rec() function into ng_netflow_flow_add().
Notes:
svn path=/head/; revision=143924
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
be pass-thru mode, when traffic is not copied by ng_tee, but passed thru
ng_netflow.
Changes made:
- In ng_netflow_rcvdata() do all necessary pulluping: Ethernet header,
IP header, and TCP/UDP header.
- Pass only pointer to struct ip to ng_netflow_flow_add(). Any TCP/UDP
headers are guaranteed to by after it.
- Merge make_flow_rec() function into ng_netflow_flow_add().
Notes:
svn path=/head/; revision=143923
|
| |
|
|
| |
Notes:
svn path=/head/; revision=143912
|
| |
|
|
|
|
|
| |
- Don't account length of the first packet in a flow twice.
Notes:
svn path=/head/; revision=143890
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
precision when IP packet may travel through internet for several seconds.
Also uptime measured in milliseconds overflows every 48+ days.
But we have to do same to keep compatibility with Cisco and flow-tools.
Make a macro MILLIUPTIME, which does overflowable multiplication to 1000.
Requested by: Sergey Ryabin, Oleg Bulyzhin
MFC after: 1 week
Notes:
svn path=/head/; revision=143103
|
| |
|
|
|
|
|
| |
a node disconnected from all sources of traffic never purges its cache.
Notes:
svn path=/head/; revision=141348
|
| |
|
|
| |
Notes:
svn path=/head/; revision=141343
|
| |
|
|
|
|
|
|
|
|
|
|
| |
before entering ng_netflow. In this case it will have not NULL m_pkthdr.rcvif.
However, it will enter ng_iface soon with another index. So let in_ifIndex
value configured by user override m_pkthdr.rcvif.
Reported by: Damir Bikmuhametov
MFC after: 1 week
Notes:
svn path=/head/; revision=141112
|
| |
|
|
|
|
|
| |
MFC after: 1 week
Notes:
svn path=/head/; revision=140511
|
| |
|
|
|
|
|
|
|
|
| |
- Initialize error to 0 in ng_netflow_flow_add() (a nop change).
- Update cache statistics holding workqueue mutex.
MFC after: 3 days
Notes:
svn path=/head/; revision=139374
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
- Always check that index number passed from userland
is <= NG_NETFLOW_MAXIFACES. [1]
- Increase NG_NETFLOW_MAXIFACES up to 512. [2]
Noticed by: Roman Palagin [1]
Requested by: Yuri Y. Bushmelev [2]
MFC after: 1 week
Notes:
svn path=/head/; revision=138392
|
| |
|
|
| |
Notes:
svn path=/head/; revision=137115
|
| |
|
|
|
|
|
|
|
| |
- Change my email to glebius@FreeBSD.org
Requested by: ru [1]
Notes:
svn path=/head/; revision=135400
|
|
|
Supported by: Bestcom ISP, Rinet ISP
Approved by: julian (mentor)
Notes:
svn path=/head/; revision=135332
|