10c252ba47
as necessary: * Implement a new mbuf utility routine, m_copyup(), is is like m_pullup(), except that it always prepends and copies, rather than only doing so if the desired length is larger than m->m_len. m_copyup() also allows an offset into the destination mbuf, which allows space for packet headers, in the forwarding case. * Add *_HDR_ALIGNED_P() macros for IP, IPv6, ICMP, and IGMP. These macros expand to 1 if __NO_STRICT_ALIGNMENT is defined, so that architectures which do not have strict alignment constraints don't pay for the test or visit the new align-if-needed path. * Use the new macros to check if a header needs to be aligned, or to assert that it already is, as appropriate. Note: This code is still somewhat experimental. However, the new code path won't be visited if individual device drivers continue to guarantee that packets are delivered to layer 3 already properly aligned (which are rules that are already in use). |
||
---|---|---|
.. | ||
cnmagic.c | ||
core_elf32.c | ||
core_elf64.c | ||
core_netbsd.c | ||
exec_aout.c | ||
exec_conf.c | ||
exec_ecoff.c | ||
exec_elf32.c | ||
exec_elf64.c | ||
exec_elf_common.c | ||
exec_macho.c | ||
exec_script.c | ||
exec_subr.c | ||
genassym.awk | ||
genassym.sh | ||
genlintstub.awk | ||
init_main.c | ||
init_sysent.c | ||
kern_acct.c | ||
kern_allocsys.c | ||
kern_clock.c | ||
kern_descrip.c | ||
kern_exec.c | ||
kern_exit.c | ||
kern_fork.c | ||
kern_kthread.c | ||
kern_ktrace.c | ||
kern_lkm.c | ||
kern_lock.c | ||
kern_malloc_debug.c | ||
kern_malloc.c | ||
kern_ntptime.c | ||
kern_physio.c | ||
kern_proc.c | ||
kern_prot.c | ||
kern_resource.c | ||
kern_sig.c | ||
kern_subr.c | ||
kern_synch.c | ||
kern_sysctl.c | ||
kern_systrace.c | ||
kern_time.c | ||
kern_xxx.c | ||
kgdb_stub.c | ||
Make.tags.inc | ||
Makefile | ||
makesyscalls.sh | ||
subr_autoconf.c | ||
subr_disk.c | ||
subr_extent.c | ||
subr_log.c | ||
subr_pool.c | ||
subr_prf.c | ||
subr_prof.c | ||
subr_prop.c | ||
subr_rmap.c | ||
subr_userconf.c | ||
subr_xxx.c | ||
sys_generic.c | ||
sys_pipe.c | ||
sys_process.c | ||
sys_socket.c | ||
syscalls.c | ||
syscalls.conf | ||
syscalls.master | ||
sysv_ipc.c | ||
sysv_msg.c | ||
sysv_sem.c | ||
sysv_shm.c | ||
tty_conf.c | ||
tty_pty.c | ||
tty_subr.c | ||
tty_tb.c | ||
tty_tty.c | ||
tty.c | ||
uipc_domain.c | ||
uipc_mbuf2.c | ||
uipc_mbuf.c | ||
uipc_proto.c | ||
uipc_socket2.c | ||
uipc_socket.c | ||
uipc_syscalls.c | ||
uipc_usrreq.c | ||
vfs_bio.c | ||
vfs_cache.c | ||
vfs_getcwd.c | ||
vfs_init.c | ||
vfs_lockf.c | ||
vfs_lookup.c | ||
vfs_subr.c | ||
vfs_syscalls.c | ||
vfs_vnops.c | ||
vnode_if.c | ||
vnode_if.sh | ||
vnode_if.src |