summaryrefslogtreecommitdiff
path: root/sys/src/cmd/ip/dhcpd/dhcpd.c
AgeCommit message (Collapse)Author
2022-06-16ip/dhcpd: quiet up syslogJacob Moody
the packet prints can be found through -d now.
2022-06-05ip/dhcpd: properly skip past ipv6 addresses in addrsoptJacob Moody
If the first address passed happened to be an ipv6 address we would send a malformed option by never including a ipv4 address.
2022-03-13ip/dhcpd: ignore icmp advicecinap_lenrek
should ignore advice as we are handling all connections thru a single udp connection.
2021-04-11ip/dhcpd: work around raspberry pi pxe firmware by providing dhcp option 66cinap_lenrek
The raspberry pi 4 PXE firmware insists on finding the tftp server address by parsing dhcp option 66 as an ip address string.
2019-10-22ip/dhcpd: prevent client from increasing max reply size beyond the reply ↵cinap_lenrek
buffer capacity
2019-01-24ip/dhcpd: remove undocumented dhcpgroup mechanism, group related ndb ↵cinap_lenrek
attributes together
2019-01-23ip/dhcpd: send vendor ndb attribute if available (thanks k0ga)cinap_lenrek
At this moment plan9 is using vendorinfo to communicate some specific plan9 parameters, but there are some boards that use this attribute to set specific values. This patch allows netbooting of these boards using ndb attributes instead of hard coded solutions in dhcpd(1). Vendor attribute is used for that purpose because it is also used for the same purpose in bootp.
2019-01-23ip/dhcpd: change swap to rootserver (thanks k0ga)cinap_lenrek
2018-11-08ip/dhcpd: Add swap server support in dhcpd (thanks k0ga)cinap_lenrek
2018-10-08ip/dhcpd, ip/tftpd: change default for tftp homedir to /cinap_lenrek
2018-09-26libc: return number of bytes produced for idn2utf() and utf2idn()cinap_lenrek
2018-09-25ip/dhcpd: handle internationalized domain namescinap_lenrek
2018-09-25ip/dhcpd: implement rfc3397 dhcp search domain option (dnsdomain)cinap_lenrek
2018-09-01ip/dhcpd: bring back interface address for arpenter()cinap_lenrek
the arp table is per interface, so it is possible to have the same netwrok on multiple physical interfaces, tho with different source ip address. one example would be a ethernet and a wlan interface. the mac addresses on these mediums can differ (arp proxying taking place). so provide our source address on the interface we received the request on. the previous change used the ifcaddr; which is correct; but due to a oversight in the kernel, had to match the ip of the arp entry. source address will always work.
2018-09-01ip/dhcpd: add varargck pragma for warning() and fatal(), do syserr with %r ↵cinap_lenrek
format
2018-08-30ip/dhcpd: revert arpenter() changescinap_lenrek
2018-08-26ip/dhcpd: reject bogus requests, handle multiple ether= attributes in ndb, ↵cinap_lenrek
cleanup unless relay agent (gaddr) is specified, dhcp requests need to taget a local ip address on the incoming interface or broadcast. clients might have multiple ethernet interfaces, so we need to check if any of the ether= attributes in ndb matches. this is done by passing lookupip() the attribute name and a expected value and if a match is found, set Info.indb = 1. remove tohex(), use encodefmt instead. avoid dynamcic allocation. include interface device in log messages.
2018-08-25ip/dhcpd: handle multiple networks on the same interface, dont get confused ↵cinap_lenrek
by v6 interface address
2018-06-03ip/dhcpd: parseip() error handling, make sure client ip is ipv4, add ↵cinap_lenrek
explicit length arguments to lookupname() and lookupserver()
2015-03-18dhcpd: ignore ";" filename from sgi arcs bootp(); commandcinap_lenrek
2011-03-30Import sources from 2011-03-30 iso image - libTaru Karttunen
2011-03-30Import sources from 2011-03-30 iso imageTaru Karttunen