| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
| |
PPPoE modes. The interface was declared obsoleted before 5.3-RELEASE.
When running as access concentrator ng_pppoe(4) supports both modes
simultanously. When running as client mode can be swicthed in ppp(8)
configuration.
Approved by: re (scottl)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
an item may be queued and processed later. While this is OK for mbufs,
this is a problem for control messages.
In the framework:
- Add optional callback function pointer to an item. When item gets
applied the callback is executed from ng_apply_item().
- Add new flag NG_PROGRESS. If this flag is supplied, then return
EINPROGRESS instead of 0 in case if item failed to deliver
synchronously and was queued.
- Honor NG_PROGRESS in ng_snd_item().
In ng_socket:
- When userland sends control message add callback to the item.
- If ng_snd_item() returns EINPROGRESS, then sleep.
This change fixes possible races in ngctl(8) scripts.
Reviewed by: julian
Approved by: re (scottl)
|
|
|
|
|
|
|
|
| |
set. If found, then recalculate its checksum.
- Remove debugging printfs.
- Slightly rearrange code in ng_nat_rcvdata().
Approved by: re (scottl)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
a DLT_NULL interface. In particular:
1) Consistently use type u_int32_t for the header of a
DLT_NULL device - it continues to represent the address
family as always.
2) In the DLT_NULL case get bpf_movein to store the u_int32_t
in a sockaddr rather than in the mbuf, to be consistent
with all the DLT types.
3) Consequently fix a bug in bpf_movein/bpfwrite which
only permitted packets up to 4 bytes less than the MTU
to be written.
4) Fix all DLT_NULL devices to have the code required to
allow writing to their bpf devices.
5) Move the code to allow writing to if_lo from if_simloop
to looutput, because it only applies to DLT_NULL devices
but was being applied to other devices that use if_simloop
possibly incorrectly.
PR: 82157
Submitted by: Matthew Luckie <mjl@luckie.org.nz>
Approved by: re (scottl)
|
|
|
|
|
|
|
|
| |
Provide a backwards compatible way to have the extra macro by defining
PCCARD_API_LEVEL 5 before including pccarddevs for driver writers that
want/need to have the same driver on 5 and 6 with pccard attachments.
Approved by: re (dwhite)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
struct ifnet or the layer 2 common structure it was embedded in have
been replaced with a struct ifnet pointer to be filled by a call to the
new function, if_alloc(). The layer 2 common structure is also allocated
via if_alloc() based on the interface type. It is hung off the new
struct ifnet member, if_l2com.
This change removes the size of these structures from the kernel ABI and
will allow us to better manage them as interfaces come and go.
Other changes of note:
- Struct arpcom is no longer referenced in normal interface code.
Instead the Ethernet address is accessed via the IFP2ENADDR() macro.
To enforce this ac_enaddr has been renamed to _ac_enaddr.
- The second argument to ether_ifattach is now always the mac address
from driver private storage rather than sometimes being ac_enaddr.
Reviewed by: sobomax, sam
|
|
|
|
|
|
|
|
| |
- Do not edit pullup_len outside M_CHECK macro.
- Do not reimplement NG_FWD_NEW_DATA().
- Remove redundant check for item being not NULL.
Submitted by: ru
|
|
|
|
|
|
|
|
|
|
|
| |
hack MSS of packets outgoing via interface with small MTU, to workaround
path MTU discovery problems.
Written by Alexey Popov, with some cleanups from me. There are also plans
to improve mpd port, so that it uses this node, instead of doing MSS
hacking in userland, when 'enable tcpmssfix' option is on.
Submitted by: Alexey Popov <lollypop@flexuser.ru>
|
| |
|
| |
|
|
|
|
|
|
|
| |
PR: kern/79990
Reported by: Arcadiy Ivanov
Reported by: atckoe.zlo @ gmail.com
MFC after: 1 week
|
|
|
|
| |
in hook name.
|
|
|
|
|
|
|
|
|
| |
Note: len gets intialized to 0 for sap == NULL case only to
make compiler on amd64 happy. This has nothing todo with the
former uninitialized use of len in sap != NULL case.
Reviewed by: glebius
Approved by: pjd (mentor)
|
|
|
|
|
|
|
| |
(where I incorrectly put it initially) to "ignored" devices list (where
it should be). Pointy hat goes to me.
MFC after: 3 days
|
|
|
|
|
|
|
|
| |
value.
PR: kern/81371
Submitted by: Wojciech A. Koszek
MFC after: 1 week
|
|
|
|
|
| |
PR: kern/81349
Submitted by: Wojciech A. Koszek
|
|
|
|
|
| |
version under TRACE_MESSAGES.
- Pass NG_WAITOK flag to ng_package_data() in unwinded macro.
|
| |
|
|
|
|
| |
Suggested & reviewed by: archie
|
|
|
|
|
|
| |
- Reformat code under TRACE_MESSAGES to make it more readable.
- Move linker hackery out of #ifdef.
- Break long lines in linker hackery block.
|
|
|
|
|
|
|
| |
do this, obtain netgraph locking in detach method via ng_send_fn1().
Reviewed by: julian
MFC after: 2 weeks
|
| |
|
|
|
|
| |
path.
|
|
|
|
| |
- Handle errors from ng_package_data().
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
specified by caller.
- Change ng_send_item() interface - use 'flags' argument instead of
boolean 'queue'.
- Extend ng_send_fn(), ng_package_data() and ng_package_msg()
interface - add possibility to pass flags. Rename ng_send_fn() to
ng_send_fn1(). Create macro for ng_send_fn().
- Update all macros, that use ng_package_data() and ng_package_msg().
Reviewed by: julian
|
|
|
|
|
|
| |
without hacking source.
In collaboration with: ru, julian
|
|
|
|
|
| |
declarations are in one place, to improve readability.
No functional changes.
|
|
|
|
|
|
|
|
|
|
|
| |
- ng_getqblk() simply runs uma_zalloc().
- ng_free_item() simply frees.
- ngq_mtx is pushed down under NETGRAPH_DEBUG.
- NGQF_FREE is removed.
Increase default maxalloc to 512.
Reviewed by: julian
|
|
|
|
| |
from socket side. Use ng_queue_fn() instead of ng_send_fn().
|
|
|
|
| |
ng_queue_fn() - a queue version of ng_send_fn().
|
|
|
|
| |
- Adjust comments and variables names in nfinfo.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
Submitted by: Noritoshi Demizu
Pointy hat to: glebius
|
|
|
|
|
|
|
|
| |
supported by ng_ubt(4) driver and needs its own driver.
PR: kern/76205
Submitted by: Tim Hemel < bsd AT timit DOT nl >
MFC after: 1 week
|
|
|
|
|
| |
- Tell libalias, that we have MCLBYTES to play with.
- Obtain length of data in mbuf from updated IP header.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
to the mbuf. Offset cannot exceed MHLEN bytes. This is currently used to
fix Ethernet header alignment problem on alpha and sparc64. Also change all
users of m_uiotombuf to pass proper offset.
Reviewed by: jmg, sam
Tested by: Sten Spans "sten AT blinkenlights DOT nl"
MFC after: 1 week
|
|
|
|
|
|
|
| |
- Call if_link_state_change() when netgraph flow control
messages are received.
Sponsored by: Rambler
|
|
|
|
|
|
| |
it to all vlans.
Sponsored by: Rambler
|
| |
|
|
|
|
| |
copy of given control message.
|
|
|
|
|
|
|
| |
- Backout previous revision, the check is useless.
- Turn node to queue mode, since it is edge node.
Reported by: sem
|
|
|
|
|
|
|
| |
- No need to initialize error here.
PR: kern/79884
Submitted by: Wojciech A. Koszek
|
|
|
|
|
| |
PR: kern/79806
Submitted by: Wojciech A. Koszek
|
| |
|
|
|
|
| |
the rest of the names assigned to this object.
|
|
|
|
|
| |
PR: kern/78431
MFC after: 3 days
|
|
|
|
|
|
|
|
| |
protocol. RFCOMM is a SOCK_STREAM protocol not SOCK_SEQPACKET. This was a
serious bug caused by cut-and-paste. I'm surprised it did not bite me before.
Dunce hat goes to me.
MFC after: 3 days
|
|
|
|
|
|
|
| |
EA bit is set in hdr->length (16-bit length). This currently has no effect
on the rest of the code. It just fixes the debug message.
MFC After: 3 weeks
|