summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-06-12Remove old unused prototype, from Ilya Kaliman.Nicholas Marriott
2016-06-12ethernet -> EthernetJonathan Gray
2016-06-12imxenet -> fecJonathan Gray
2016-06-12Use OF_getpropintarray().Mark Kettenis
2016-06-12Dynamically attach fec(4) using the FDT.Mark Kettenis
ok jsg@, patrick@
2016-06-12Add OF_getpropint() and OF_getpropintarray().Mark Kettenis
ok visa@, jsg@
2016-06-12Handle both the nintr 1 (allwinner a10/cortex a8) andJonathan Gray
nintr 3 (allwinner a20/cortex a7) cases.
2016-06-12Ignore everything after and including ':' in stdout-path whenJonathan Gray
finding the console node. Characters after this are device specific settings (baud etc). ok kettenis@
2016-06-11if the timeout rounds to zero, make it one tick, otherwise we sleepTed Unangst
forever. noticed by Davin McCall. while here, if the timeout actually is zero, return appropriate error. ok guenther.
2016-06-11Since epp->ep_name is a userland pointer, use copyinstr(9) to get a copy okMark Kettenis
the string into kernel space before logging the W^X binary warning. ok jca@, guenther@
2016-06-11Cleanup some systrace leftovers.Mark Kettenis
ok jca@, guenther@
2016-06-11don't use specified twice in a sentence, noticed by jmcTed Unangst
2016-06-11dynamically attach imxuart using the FDTJonathan Gray
ok kettenis@
2016-06-11syncVisa Hankala
2016-06-11Fixed "then" vs "than" typo.Tobias Stoeckmann
ok jmc
2016-06-11The qemu smdkc210 target uses serial0 for console but theJonathan Gray
exynos4210-universal_c210 dtb specifies stdout as serial2. Override the address found with fdt if the board id is c210 to cope.
2016-06-11dynamically attach sxiuart using the FDTJonathan Gray
2016-06-11dynamically attach sxie(4) using the FDTJonathan Gray
2016-06-11clarify some wordingTed Unangst
2016-06-11specify that default is deny if no rule matchesTed Unangst
2016-06-11expand contractionsTed Unangst
2016-06-11tighten up some wordingTed Unangst
2016-06-11Parse the whole Hello packet before processing it.Renato Westphal
In the case of an error, we want to return as soon as possible to avoid having to clean things up. This fixes a bug where we could create a dynamic targeted neighbor in response to a malformed packet.
2016-06-11Add missing ntohl() when recording a label request.Renato Westphal
Fixes the following ANVL LDP tests: 1.5 and 9.4.
2016-06-11Send an 'Unknown FEC' Notification for unexpected wildcard FECs.Renato Westphal
This is basically just to make ANVL happy, there's not much difference between sending an 'Unknown FEC' or a 'Malformed TLV' Notification. Fixes ANVL LDP test 15.6.
2016-06-11Make all TLV parsing functions look the same for consistency.Renato Westphal
Also, add one more safety check in recv_init().
2016-06-11Make it possible to parse unknown TLVs in the future.Renato Westphal
In the parsing of label and notification messages, we were always unsetting the first bit of the TLV type before comparing it against the types we know. We should not do this because our type constants can have this bit set when appropriate. By now the only unknown TLV supported by ldpd(8) is TLV_TYPE_DUALSTACK, which is only used in Hello messages. But we might change this in the future with support for MAC List TLVs and maybe RFC 7473.
2016-06-11Use uint16_t for notification type.Renato Westphal
This doesn't fix any bug as we were already using uint16_t everywhere else.
2016-06-11Fix parsing of multiple optional TLVs in label and notification messages.Renato Westphal
We were accepting at most one optional TLV. Fixes IxANVL LDP test 15.3.
2016-06-10Add the "llprio" field to struct ifnet, and the corresponding keywordVincent Gross
to ifconfig. "llprio" allows one to set the priority of packets that do not go through pf(4), as the case is for arp(4) or bpf(4). ok sthen@ mikeb@
2016-06-10The power management timer has been made optional in ACPI 5.0A, so don'tMark Kettenis
attempt to attach acpitimer(4) if the timer isn't present. Pointed out by jcs@ ok jcs@
2016-06-10fix some typos in commentsJoshua Stein
from Tom Cosgrove
2016-06-10grammar fix; from nick permyakovJason McIntyre
2016-06-10Remove readpage and writepage ioctls.Stefan Kempf
They are not needed anymore now that guest memory is allocated by and shared with the host. ok mlarkin@
2016-06-10Access guest memory with normal loads and stores in vmd(8)Stefan Kempf
read_mem() and write_mem() in vmd(8) now use memcpy() instead of the vm_readpage() and vm_writepage() ioctls to read/write guest memory. ok mlarkin@
2016-06-10Clean up gcc -Wshadow warnings: 'numnames' is public in <term.h>.Theo Buehler
'i' shadows the local loop indexing variable of scr_update(), so no need to rename it. No binary change on amd64. ok millert
2016-06-10When eliding a row, clear the invisible row zero, so that no columnsTheo Buehler
can become unusable during game play. Same fix was made in NetBSD's tetris.c -r1.31 by Christos Zoulas almost exactly a year ago. ok tedu
2016-06-10list dtbs in DTBS not DTBJonathan Gray
fixes lack of dtbs on cubox miniroot reported by jca@
2016-06-10& expands to the maximum amount of needed space; fix comment.Florian Obser
Pointed out by Frank Schoep, thanks!
2016-06-10Spelling error (incrased -> increased), from Josh Soref.Nicholas Marriott
2016-06-10test return value not an uninitialised variableJonathan Gray
from Tom Cosgrove
2016-06-10Simplify the sample rate converter, no behaviour change.Alexandre Ratchov
2016-06-10correct spelling of a commentJonathan Gray
from Tom Cosgrove
2016-06-10update config lines for fdtJonathan Gray
2016-06-10attach imxahci and imxesdhc to fdt on RAMDISK as wellJonathan Gray
2016-06-09Fix typo in comment. From Kapetanakis GiannisAlexander Bluhm
2016-06-09Do set the Message ID for Hello messages too.Renato Westphal
In the original LDP specification, there was no circumstance where a Notification message could be sent in response to a Hello message. So setting the Message ID field for Hello packets was useless. This changed with RFC 7552, where Hello packets can trigger the "Transport Connection Mismatch" notification when the local and remote transport preferences doesn't match. In this case, having a meaningful Message ID in the Hello packets can aid in testing and troubleshooting.
2016-06-09Do not shut down the session upon receiving unknown messages.Renato Westphal
RFC 5036 says the following about the receipt of unknown messages: "Unknown message bit. Upon receipt of an unknown message, if U is clear (=0), a notification is returned to the message originator; if U is set (=1), the unknown message is silently ignored". We were correctly ignoring unknown messages when the U-bit was set. But when this bit was not set, we were shutting down the session when the correct thing to do is to just send a non-fatal notification message. Fix IxANVL LDP test 22.13.
2016-06-09Send a fatal notification when the last hello adjacency is deleted.Renato Westphal
RFC 5036 says: "When the last Hello adjacency for an LDP session is deleted, the LSR terminates the LDP session by sending a Notification message and closing the transport connection". Send a "Hold Timer Expired" notification when the triggering event is a hello hold time timeout. In the other cases, like disabling LDP on an interface, send a "Shutdown" notification instead. Before this patch we were just closing the neighbor's transport connection. Fixes the following ANVL LDP tests: 7.17 and 23.3.
2016-06-09Dynamically attach imxesdhc(4) using the FDT.Mark Kettenis
ok jsg@