summaryrefslogtreecommitdiff
path: root/accel-pppd/ctrl/ipoe/dhcpv4.c
AgeCommit message (Collapse)Author
2023-06-05ipoe: add dhcp link selection sub-optionPhilippe Guibert
Add the support of DHCP option 82 "Agent Information" sub-option 5 "link selection". The IPv4 value can be specified in the [ipoe] "link-selection" configuration option. Link: https://www.rfc-editor.org/rfc/rfc3527.html Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com> Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
2022-11-01Merge pull request #64 from volodymyrhuti/masterEshenko Dmitriy
T72: Fix compilations warnings for unaligned variable access
2022-10-22T72: Fix compilations warnings for unaligned variable accessVolodymyr Huti
- IPoE/DHCP4: Specify minimal suitable alignment explicitly. We need to guarantee 2 byte alignment for the `hdr` pointer in `ip_csum(uint16_t *buf)` calculation - PPPOE: Suppress false-positive warning for `sockaddr_pppox`. Similiar issue: https://github.com/kernelslacker/trinity/pull/40 - Introduce tmp variables to avoid alignment issues for SSTP/DHCPv6 For additional details: https://phabricator.accel-ppp.org/T72 Signed-off-by: Volodymyr Huti <v.huti@vyos.io>
2022-05-09Add missing dhcp end option on dhcp notify packetcygnusb
2021-07-09ipoe: dhcpv4: fix address lost due signed overflowVladislav Grishenko
fixes a1a2b79240511222868a60960d51f12adbe0d7d4
2021-06-16ipoe: T41: Fix address range shiftingDmitriyEshenko
2021-04-30ipoe: use destination address from IP header as server_id if not sent in ↵Dmitry Kozlov
dhcp request header
2021-01-10ipoe: add option 54 (server-id) to DHCPNAKDmitry Kozlov
2020-12-19ipoe: added option 56 to DHCP NAK packetDmitry Kozlov
2020-09-06auth/chap-secrets/dhcpv4: fix big-endian arch supportVladislav Grishenko
2020-04-30ipoe: dhcp: add rebind-time supportVladislav Grishenko
2020-04-13dhcpv4/dhcpv6: improve packet validationVladislav Grishenko
2020-03-10Merge pull request #117 from themiron/echo-opt82xebd
ipoe: dhcpv4: echo back opt82 if sent by client/relay per rfc3046
2020-02-16ipoe: dhcpv4: echo back opt82 if sent by client/unknown relay per rfc3046Vladislav Grishenko
2020-02-16ipoe: dhcpv4: move relay packet logging after paddingVladislav Grishenko
2020-02-16ipoe: dhcpv4: implement udp csum and padding per rfc1542Vladislav Grishenko
2019-02-02ipoe: dhcpv4: add wins1/wins2 config options supportVladislav Grishenko
2019-02-02ipoe: dhcpv4: fix dhcp reply with dns1 unset, dns2 setVladislav Grishenko
2019-02-02ipoe: dhcpv4: group radius array attrs into one dhcp optionVladislav Grishenko
2018-03-04fix possible null pointer dereferencesVladislav Grishenko
2017-12-27ipoe: include server's mac into weight notify packet to be used as ↵Dmitry Kozlov
additional key when weights are equal
2017-12-27ipoe: implemented new load balancing mechanismDmitry Kozlov
new config options: [ipoe] weight=N - global weight interface=ethX,weight=N - per-interface weight How it works: On reception of DHCPDISCOVER accel-ppp sends broadcast DHCP message to port 67 with same xid and add special vendor-specific option where encodes its current session count multipled by weight. On reception of such message accel-ppp searches session with same xid and compares weight. If received weight is less than session's weight then it terminates this session. per-interface weight=0 has special meaning as backup (fail-over) interface, f.e. it terminates session on any received weight. By default weight based load balancing is disabled. To enable need to specify global or/and per-interface weight.
2016-12-10ipoe: implemented support for freeradius dhcp attributesDmitry Kozlov
2015-11-24ipoe: fix endian in adding dhcp optionsDmitry Kozlov
2015-11-17ipoe: implemented dhcp option 58Dmitry Kozlov
2015-07-07ipoe: disable udp checksum validationDmitry Kozlov
2015-04-20ipoe: changed behavior of agent-remote-id optionDmitry Kozlov
Before this patch if agent-remote-id is not specified in config it get default value "accel-pppd". Now if agent-remote-id is not specified then accel-ppp will not insert his Option 82 into relayed DHCP requests
2014-12-04ipoe: send DHCP reply to sessions's dhcp socket if existsDmitry Kozlov
2014-11-22remove trailing whitespacesDmitry Kozlov
2014-10-27ipoe: implemented handling relayed DHCP clientsDmitry Kozlov
2014-10-17ipoe: initialize before_switch function for server contextsDmitry Kozlov
2014-06-03Merge branch 'master' of ssh://git.code.sf.net/p/accel-ppp/codeDmitry Kozlov
2014-06-03make IPv4 address to string conversions endian friendlyDmitry Kozlov
2014-05-28ipoe: dhcp: fixed incorrect parsing empty optionsDmitry Kozlov
2014-05-12triton: improved epoll events handlingDmitry Kozlov
2013-12-12ipoe: fixed parsing 'range' optionDmitry Kozlov
Signed-off-by: Dmitry Kozlov <xeb@mail.ru>
2013-10-10ipoe: optimize use of raw socketsDmitry Kozlov
Signed-off-by: Dmitry Kozlov <xeb@mail.ru>
2013-09-09ipoe: fixed sigsegv when interface is without additional optionsDmitry Kozlov
2013-09-06ipoe: send broadcast DHCP packets if BROADCAST flag is setDmitry Kozlov
2013-09-06ipoe: various fixes in relay operationDmitry Kozlov
2013-09-05ipoe: various bug fixesDmitry Kozlov
2013-04-25ipoe: detect giaddr if not specifiedKozlov Dmitry
2013-04-22ipoe: add relay port to config (relay=addr[:port])Dmitry Kozlov
2013-01-28ipoe: changed assignment of Server-ID and Router optionsKozlov Dmitry
2013-01-26ipoe: insert opt82 to each relay packetKozlov Dmitry
2013-01-26Revert "ipoe: insert opt82 to each relay packet"Kozlov Dmitry
This reverts commit cde7ee4d629b32c810ceac836b70a4289b4f00b3.
2013-01-26ipoe: insert opt82 to each relay packetKozlov Dmitry
2013-01-25ipoe: properly insert option 82 before ENDKozlov Dmitry
2013-01-25ipoe: insert option 82 to relay requestKozlov Dmitry
2012-08-03ipoe: implemented dhcp relayKozlov Dmitry