248340 Commits

Author SHA1 Message Date
christos
fdccd7e474 merge conflicts. 2017-01-24 23:29:13 +00:00
christos
fe39001e76 Add another pcap header. 2017-01-24 23:27:52 +00:00
christos
914119d9ca add another header file 2017-01-24 23:26:58 +00:00
christos
f4e3756360 Add more files 2017-01-24 22:37:31 +00:00
christos
9d5177b3b3 bump libpcap. 2017-01-24 22:30:53 +00:00
christos
db7feebfd5 merge conflicts. 2017-01-24 22:29:28 +00:00
christos
9979d21e54 don't output extern YYSTYPE decl if pure_parser. 2017-01-24 22:28:42 +00:00
christos
0e249c9092 Sync with libpcap-1.8.1 2017-01-24 22:12:42 +00:00
christos
a40cc363b3 Tuesday, Oct. 25, 2016 mcr@sandelman.ca
Summary for 1.8.1 libpcap release
    Add a target in Makefile.in for Exuberant Ctags use: 'extags'.
    Rename configure.in to configure.ac: autoconf 2.59
    Clean up the name-to-DLT mapping table.
    Add some newer DLT_ values: IPMI_HPM_2,ZWAVE_R1_R2,ZWAVE_R3,WATTSTOPPER_DLM,ISO_14443,RDS
    Clarify what the return values are for both success and failure.
    Many changes to build on windows
    Check for the "break the loop" condition in the inner loop for TPACKET_V3.
    Fix handling of packet count in the TPACKET_V3 inner loop: GitHub issue #493.
    Filter out duplicate looped back CAN frames.
    Fix the handling of loopback filters for IPv6 packets.
    Add a link-layer header type for RDS (IEC 62106) groups.
    Use different intermediate folders for x86 and x64 builds on Windows.
    On Linux, handle all CAN captures with pcap-linux.c, in cooked mode.
    Removes the need for the "host-endian" link-layer header type.
    Compile with '-Wused-but-marked-unused' in devel mode if supported
    Have separate DLTs for big-endian and host-endian SocketCAN headers.
    Reflect version.h being renamed to pcap_version.h.
    Require that version.h be generated: all build procedures we support generate version.h (autoconf, CMake, MSVC)!
    Properly check for sock_recv() errors.
    Re-impose some of Winsock's limitations on sock_recv().
    Replace sprintf() with pcap_snprintf().
    Fix signature of pcap_stats_ex_remote().
    Initial cmake support for remote packet capture.
    Have rpcap_remoteact_getsock() return a SOCKET and supply an "is active" flag.
    Clean up {DAG, Septel, Myricom SNF}-only builds.
    Do UTF-16-to-ASCII conversion into the right place.
    pcap_create_interface() needs the interface name on Linux.
    Clean up hardware time stamp support: the "any" device does not support any time stamp types.
    Add support for capturing on FreeBSD usbusN interfaces.
    Add a LINKTYPE/DLT_ value for FreeBSD USB.
    Go back to using PCAP_API on Windows.
    CMake support
    Add TurboCap support from WinPcap.
    Recognize 802.1ad nested VLAN tag in vlan filter.

Thursday Sep. 3, 2015 guy@alum.mit.edu
  Summary for 1.7.5 libpcap release
	Man page cleanups.
	Add some allocation failure checks.
	Fix a number of Linux/ucLinux configure/build issues.
	Fix some memory leaks.
	Recognize 802.1ad nested VLAN tag in vlan filter.
	Fix building Bluetooth Linux Monitor support with BlueZ 5.1+

Saturday Jun. 27, 2015 mcr@sandelman.ca
  Summary for 1.7.4 libpcap release
	Include fix for GitHub issue #424 -- out of tree builds.

Friday Apr. 10, 2015 guy@alum.mit.edu
  Summary for 1.7.3 libpcap release
	Work around a Linux bonding driver bug.
2017-01-24 21:55:26 +00:00
christos
784088dff9 Tuesday October 25, 2016 mcr@sandelman.ca
Summary for 4.8.1 tcpdump release
	Fix "-x" for Apple PKTAP and PPI packets
        Use PRIx64 to print a 64-bit number in hex.
        Printer for HNCP (RFCs 7787 and 7788).
        dagid is always an IPv6 address, not an opaque 128-bit string, and other fixes to RPL printer.
        RSVP: Add bounds and length checks
        OSPF: Do more bounds checking
        Handle OpenSSL 1.1.x.
        Initial support for the REdis Serialization Protocol known as RESP.
        Add printing function for Generic Protocol Extension for VXLAN
            draft-ietf-nvo3-vxlan-gpe-01
        Network Service Header: draft-ietf-sfc-nsh-01
        Don't recompile the filter if the new file has the same DLT.
        Pass an adjusted struct pcap_pkthdr to the sub-printer.
        Add three test cases for already fixed CVEs
           CVE-2014-8767: OLSR
           CVE-2014-8768: Geonet
           CVE-2014-8769: AODV
        Don't do the DDP-over-UDP heuristic first: GitHub issue #499.
        Use the new debugging routines in libpcap.
        Harmonize TCP source or destination ports tests with UDP ones
        Introduce data types to use for integral values in packet structures.
        RSVP: Fix an infinite loop
        Support of Type 3 and Type 4 LISP packets.
        Don't require IPv6 library support in order to support IPv6 addresses.
        Many many changes to support libnetdissect usage.
        Add a test that makes unaligned accesses: GitHub issue #478.
        add a DNSSEC test case: GH #445 and GH #467.
        BGP: add decoding of ADD-PATH capability
        fixes to LLC header printing, and RFC948-style IP packets

Friday April 10, 2015 guy@alum.mit.edu
  Summary for 4.7.4 tcpdump release
	RPKI to Router Protocol: Fix Segmentation Faults and other problems
	RPKI to Router Protocol: print strings with fn_printn()
	wb: fix some bounds checks
2017-01-24 21:33:37 +00:00
christos
043ad880a5 fix signed compare 2017-01-24 20:25:08 +00:00
christos
ec23b4d29e output every 5 seconds instead of 60 or every 100 packets 2017-01-24 20:24:59 +00:00
christos
7e9937c7a6 PR/51682: Avoid DoS with fragment out of order insertion; keep fragments
sorted in the list.
2017-01-24 19:23:31 +00:00
maxv
a2073096ee Don't forget to free the mbuf when we decide not to reply to an ARP
request. This obviously is a terrible bug, since it allows a remote sender
to DoS the system with specially-crafted requests sent in a loop.
2017-01-24 18:37:20 +00:00
christos
009f8e31d2 += for MAKEFS_FLAGS 2017-01-24 18:04:01 +00:00
christos
cac2d2699a use the same logic to compute the timestamp like the other files 2017-01-24 18:01:07 +00:00
christos
3d09c58a4d MAKE varies between builds because it contains the full pathname. 2017-01-24 17:54:52 +00:00
roy
a2ac1ce48c Implement POSIX Curses Soft Label Key functions. 2017-01-24 17:27:30 +00:00
roy
9d818e01f4 Note an issue with our cursor movement in 1 line size window. 2017-01-24 16:45:41 +00:00
nonaka
53532ef3a8 amd64: make BIOS and UEFI dual bootable iso image. 2017-01-24 11:27:55 +00:00
nonaka
d01ec60946 makefs(8): add cd9660 eltorito-alt-boot option for EFI boot. 2017-01-24 11:22:43 +00:00
nonaka
90f9d081f2 make amd64 EFI install image
XXX merge to installimage?
2017-01-24 11:16:50 +00:00
nonaka
d13f498989 Initial commit of native amd64 EFI boot loader. 2017-01-24 11:09:14 +00:00
nonaka
ee329fa954 rtwn(4): increase the number of tx queue required to clear the full mask. 2017-01-24 10:18:33 +00:00
ozaki-r
9674e2224b Defer bpf_mtap in Rx interrupt context to softint
bpf_mtap of some drivers is still called in hardware interrupt context.
We want to run them in softint as well as bpf_mtap of most drivers
(see if_percpuq_softint and if_input).

To this end, bpf_mtap_softint mechanism is implemented; it defers
bpf_mtap processing to a dedicated softint for a target driver.
By using the machanism, we can move bpf_mtap processing to softint
without changing target drivers much while it adds some overhead
on CPU and memory. Once target drivers are changed to softint-based,
we should return to normal bpf_mtap.

Proposed on tech-kern and tech-net
2017-01-24 09:05:27 +00:00
ozaki-r
6e6b9ceef2 Restore splnet for if_slowtimo
if_slowtimo (== if_watchdog) still requires splnet for most drivers.

Pointed out by nonaka@
2017-01-24 07:58:58 +00:00
ozaki-r
9e8d969cf0 Tweak softnet_lock and NET_MPSAFE
- Don't hold softnet_lock in some functions if NET_MPSAFE
- Add softnet_lock to sysctl_net_inet_icmp_redirtimeout
- Add softnet_lock to expire_upcalls of ip_mroute.c
- Restore softnet_lock for in{,6}_pcbpurgeif{,0} if NET_MPSAFE
- Mark some softnet_lock for future work
2017-01-24 07:09:24 +00:00
martin
8e5b840ec7 cs4231_ebus_round_blocksize: never return 0 as blocksize 2017-01-24 05:22:38 +00:00
christos
2c6c283644 PR/51908: Kyle Amon: Allow customization of XEN kernels via .local files. 2017-01-23 17:35:34 +00:00
skrll
021afb57b6 KNF. Same code before and after. 2017-01-23 15:32:04 +00:00
abhinav
1ce36f4238 Fix typo: s/asychronously/asynchronously 2017-01-23 11:49:03 +00:00
abhinav
2971e3ab3b Fix typo: s/openes/opens 2017-01-23 11:42:03 +00:00
abhinav
8d3dde9add Fix typo: s/obtaind/obtained 2017-01-23 11:18:02 +00:00
abhinav
b21f38a299 Fix several typos. 2017-01-23 11:09:14 +00:00
abhinav
c96e8d55f0 Fix typo: s/Unpriviledged/Unprivileged 2017-01-23 10:50:11 +00:00
ozaki-r
c26964ba3f Replace some splnet with splsoftnet 2017-01-23 10:19:03 +00:00
ozaki-r
e9b008839d Make bpf_setf static 2017-01-23 10:17:36 +00:00
abhinav
5abd78da99 Fix spelling: s/overritten/overwritten 2017-01-23 10:05:25 +00:00
ozaki-r
14cc93cb28 Get rid of splnet for pool(9)
We don't need it anymore.
2017-01-23 09:14:24 +00:00
skrll
a70a03366e Use our ipq... sorry martin 2017-01-23 08:36:23 +00:00
ozaki-r
1360192bca Fix typo in a comment 2017-01-23 06:47:54 +00:00
ozaki-r
cf9d550252 Call pserialize_perform and psref_target_destroy only if NET_MPSAFE
They shouldn't be used with holding softnet_lock.
2017-01-23 02:32:54 +00:00
ozaki-r
ab9446efae Add curlwp_bind
It is necessary for example when we use tun(4). Without it the following
panic occurs:

  panic: kernel diagnostic assertion "(kpreempt_disabled() || cpu_softintr_p() || ISSET(curlwp->l_pflag, LP_BOUND))" failed: file "/usr/src/sys/kern/subr_psref.c", line 291 passive references are CPU-local, but preemption is enabled and the caller is not in a softint or CPU-bound LWP
  Backtrace:
  vpanic()
  ch_voltag_convert_in()
  psref_release()
  pfil_run_arg.isra.0()
  if_initialize()
  if_attach()
  tun_clone_create()
  tunopen()
  cdev_open()
  spec_open()
  VOP_OPEN()
  vn_open()
  do_open()
  do_sys_openat()
  sys_open()
  syscall()
2017-01-23 02:30:47 +00:00
agc
81bb145d26 Remove ROADMAP file which was last updated 9 years ago.
Our roadmap information is now kept in src/doc/roadmaps/* -- avoid confusion
by deleting out of date information.
2017-01-23 00:30:51 +00:00
nat
d866dcb144 Only call audio_initbufs and start playback if there were no errors.
Addresses PR kern/51707.
2017-01-23 00:21:34 +00:00
christos
c421844ec3 misc updates and consistency fixes 2017-01-22 22:26:16 +00:00
abhinav
7d6884c85f Fix spelling of themself 2017-01-22 21:31:20 +00:00
maxv
e15fe82cac Use xpmap_pg_nx. Not tested (due to some unrelated panic I'm getting), but
obvious enough.
2017-01-22 20:17:10 +00:00
maxv
f126f71f90 Put pmap_pg_nx into the dummy Xen page. While here, do some KNF and
localify a bit.
2017-01-22 20:04:35 +00:00
nat
6d2afc0315 Don't call initbufs before audio_set_defaults. It is called in
audiosetinfo anyway.

Addresses PR kern/51707.
2017-01-22 19:52:02 +00:00