>С какой ошибкой падает сборка? Может не хватает /usr/include/linux/socket.h (пакет glibc-devel)? Как выяснил позже, все запросы без исключения приходят с выставленной опцией 82. Просто в функции где они мониторились, они появлялись через раз - работали не с той структурой данных. Единственное, что смущает - это рекомендации собирать dhcpd c USE_SOCKETS "для того чтобы DHCP-сервер корректно обрабатывал информацию от DHCP-ретранслятора".
На free вываливается на bpf.c, на linux lpf.c
gcc -g -O2 -Wall -fno-strict-aliasing -o dhclient clparse.o dhclient.o dhc6.o ../common/libdhcp.a ../minires/libres.a ../omapip/libomapi.a ../dst/libdst.a -lcrypto
../common/libdhcp.a(socket.o)(.text+0x0): In function `if_reinitialize_send':
/dhcp-4.0.0/common/socket.c:72: multiple definition of `if_reinitialize_send'
../common/libdhcp.a(bpf.o)(.text+0x0):/dhcp-4.0.0/common/bpf.c:70: first defined here
../common/libdhcp.a(socket.o)(.text+0x8): In function `if_reinitialize_receive':
/dhcp-4.0.0/common/socket.c:86: multiple definition of `if_reinitialize_receive'
../common/libdhcp.a(bpf.o)(.text+0x8):/dhcp-4.0.0/common/bpf.c:77: first defined here
../common/libdhcp.a(socket.o)(.text+0x39c): In function `if_register_send':
/dhcp-4.0.0/common/socket.c:266: multiple definition of `if_register_send'
../common/libdhcp.a(bpf.o)(.text+0x10):/dhcp-4.0.0/common/bpf.c:128: first defined here
/usr/bin/ld: Warning: size of symbol `if_register_send' changed from 105 in ../common/libdhcp.a(bpf.o) to 77 in ../common/libdhcp.a(bpf.o)
../common/libdhcp.a(socket.o)(.text+0x3ec): In function `if_deregister_send':
/dhcp-4.0.0/common/socket.c:288: multiple definition of `if_deregister_send'
../common/libdhcp.a(bpf.o)(.text+0x7c):/dhcp-4.0.0/common/bpf.c:149: first defined here
/usr/bin/ld: Warning: size of symbol `if_deregister_send' changed from 109 in ../common/libdhcp.a(bpf.o) to 81 in ../common/libdhcp.a(bpf.o)
../common/libdhcp.a(socket.o)(.text+0x440): In function `if_register_receive':
/dhcp-4.0.0/common/socket.c:307: multiple definition of `if_register_receive'
../common/libdhcp.a(bpf.o)(.text+0x710):/dhcp-4.0.0/common/bpf.c:226: first defined here
/usr/bin/ld: Warning: size of symbol `if_register_receive' changed from 553 in ../common/libdhcp.a(bpf.o) to 93 in ../common/libdhcp.a(bpf.o)
../common/libdhcp.a(socket.o)(.text+0x4a0): In function `if_deregister_receive':
/dhcp-4.0.0/common/socket.c:321: multiple definition of `if_deregister_receive'
../common/libdhcp.a(bpf.o)(.text+0xec):/dhcp-4.0.0/common/bpf.c:329: first defined here
/usr/bin/ld: Warning: size of symbol `if_deregister_receive' changed from 121 in ../common/libdhcp.a(bpf.o) to 93 in ../common/libdhcp.a(bpf.o)
../common/libdhcp.a(socket.o)(.text+0x618): In function `send_packet':
/dhcp-4.0.0/common/socket.c:387: multiple definition of `send_packet'
../common/libdhcp.a(bpf.o)(.text+0x168):/dhcp-4.0.0/common/bpf.c:354: first defined here
/usr/bin/ld: Warning: size of symbol `send_packet' changed from 269 in ../common/libdhcp.a(bpf.o) to 97 in ../common/libdhcp.a(bpf.o)
../common/libdhcp.a(socket.o)(.text+0x738): In function `receive_packet':
/dhcp-4.0.0/common/socket.c:501: multiple definition of `receive_packet'
../common/libdhcp.a(bpf.o)(.text+0x278):/dhcp-4.0.0/common/bpf.c:394: first defined here
/usr/bin/ld: Warning: size of symbol `receive_packet' changed from 419 in ../common/libdhcp.a(bpf.o) to 60 in ../common/libdhcp.a(bpf.o)
../common/libdhcp.a(socket.o)(.text+0x8dc): In function `can_unicast_without_arp':
/dhcp-4.0.0/common/socket.c:641: multiple definition of `can_unicast_without_arp'
../common/libdhcp.a(bpf.o)(.text+0x41c):/dhcp-4.0.0/common/bpf.c:519: first defined here
/usr/bin/ld: Warning: size of symbol `can_unicast_without_arp' changed from 10 in ../common/libdhcp.a(bpf.o) to 7 in ../common/libdhcp.a(bpf.o)
../common/libdhcp.a(socket.o)(.text+0x8e4): In function `can_receive_unicast_unconfigured':
/dhcp-4.0.0/common/socket.c:647: multiple definition of `can_receive_unicast_unconfigured'
../common/libdhcp.a(bpf.o)(.text+0x428):/dhcp-4.0.0/common/bpf.c:525: first defined here
/usr/bin/ld: Warning: size of symbol `can_receive_unicast_unconfigured' changed from 10 in ../common/libdhcp.a(bpf.o) to 7 in ../common/libdhcp.a(bpf.o)
../common/libdhcp.a(socket.o)(.text+0x8ec): In function `supports_multiple_interfaces':
/dhcp-4.0.0/common/socket.c:657: multiple definition of `supports_multiple_interfaces'
../common/libdhcp.a(bpf.o)(.text+0x434):/dhcp-4.0.0/common/bpf.c:531: first defined here
/usr/bin/ld: Warning: size of symbol `supports_multiple_interfaces' changed from 10 in ../common/libdhcp.a(bpf.o) to 7 in ../common/libdhcp.a(bpf.o)
../common/libdhcp.a(socket.o)(.text+0x8f4): In function `maybe_setup_fallback':
/dhcp-4.0.0/common/socket.c:669: multiple definition of `maybe_setup_fallback'
../common/libdhcp.a(bpf.o)(.text+0x440):/dhcp-4.0.0/common/bpf.c:536: first defined here
/usr/bin/ld: Warning: size of symbol `maybe_setup_fallback' changed from 152 in ../common/libdhcp.a(bpf.o) to 224 in ../common/libdhcp.a(bpf.o)
../common/libdhcp.a(bpf.o)(.text+0x1b5): In function `send_packet':
/dhcp-4.0.0/common/bpf.c:362: undefined reference to `send_fallback'
../common/libdhcp.a(bpf.o)(.text+0x477): In function `maybe_setup_fallback':
/dhcp-4.0.0/common/bpf.c:540: undefined reference to `if_register_fallback'
*** Error code 1
Stop in /dhcp-4.0.0/client.
*** Error code 1
Stop in /dhcp-4.0.0.