90#if defined (USE_DLPI_SEND) || defined (USE_DLPI_RECEIVE) || \
91 defined(USE_DLPI_HWADDR)
93# include <sys/ioctl.h>
98# include <sys/pfmod.h>
103# include <netinet/in_systm.h>
108# ifdef USE_DLPI_PFMOD
110# define DLPI_MODNAME "DLPI+RAW+PFMOD"
112# define DLPI_MODNAME "DLPI+PFMOD"
116# define DLPI_MODNAME "DLPI+RAW"
118# define DLPI_MODNAME "DLPI"
123# define ABS(x) ((x) >= 0 ? (x) : 0-(x))
126#if defined(USE_DLPI_PFMOD) || defined(USE_DLPI_RAW)
127static int strioctl (
int fd,
int cmd,
int timeout,
int len,
char *dp);
130#define DLPI_MAXDLBUF 8192
131#define DLPI_MAXDLADDR 1024
134#if defined(USE_DEV_NET)
135#define DLPI_DEVDIR "/dev/net/"
137#define DLPI_DEVDIR "/dev/"
140static int dlpiopen(
const char *ifname);
141static int dlpiunit (
char *ifname);
142static int dlpiinforeq (
int fd);
143static int dlpiphysaddrreq (
int fd,
unsigned long addrtype);
144static int dlpiattachreq (
int fd,
unsigned long ppa);
145static int dlpibindreq (
int fd,
unsigned long sap,
unsigned long max_conind,
146 unsigned long service_mode,
unsigned long conn_mgmt,
147 unsigned long xidtest);
148#if defined(UNUSED_DLPI_INTERFACE)
152static int dlpidetachreq (
int fd);
153static int dlpiunbindreq (
int fd);
155static int dlpiokack (
int fd,
char *bufp);
156static int dlpiinfoack (
int fd,
char *bufp);
157static int dlpiphysaddrack (
int fd,
char *bufp);
158static int dlpibindack (
int fd,
char *bufp);
159#if defined(USE_DLPI_SEND) || defined(USE_DLPI_RECEIVE)
163static int dlpiunitdatareq (
int fd,
unsigned char *addr,
int addrlen,
164 unsigned long minpri,
unsigned long maxpri,
165 unsigned char *data,
int datalen);
166static int dlpiunitdataind (
int fd,
167 unsigned char *dstaddr,
168 unsigned long *dstaddrlen,
169 unsigned char *srcaddr,
170 unsigned long *srcaddrlen,
171 unsigned long *grpaddr,
175static int expected (
unsigned long prim,
union DL_primitives *dlp,
177static int strgetmsg (
int fd,
struct strbuf *ctlp,
struct strbuf *datap,
178 int *flagsp,
char *caller);
190#ifdef USE_DLPI_RECEIVE
201int if_register_dlpi (info)
206 long buf [DLPI_MAXDLBUF];
207 union DL_primitives *dlp;
209 dlp = (
union DL_primitives *)buf;
212 if ((sock = dlpiopen (info -> name)) < 0) {
213 log_fatal (
"Can't open DLPI device for %s: %m", info -> name);
220 if (dlpiinforeq(sock) < 0 || dlpiinfoack(sock, (
char *)buf) < 0) {
221 log_fatal (
"Can't get DLPI MAC type for %s: %m", info -> name);
223 switch (dlp -> info_ack.dl_mac_type) {
237 (
unsigned long)dlp->info_ack.dl_mac_type);
245 info -> dlpi_sap_length = dlp -> info_ack.dl_sap_length;
246 info -> dlpi_broadcast_addr.hlen =
247 dlp -> info_ack.dl_brdcst_addr_length;
248 memcpy (info -> dlpi_broadcast_addr.hbuf,
249 (
char *)dlp + dlp -> info_ack.dl_brdcst_addr_offset,
250 dlp -> info_ack.dl_brdcst_addr_length);
253 if (dlp -> info_ack.dl_provider_style == DL_STYLE2) {
258 unit = dlpiunit (info -> name);
260 if (dlpiattachreq (sock, unit) < 0
261 || dlpiokack (sock, (
char *)buf) < 0) {
262 log_fatal (
"Can't attach DLPI device for %s: %m", info -> name);
269 if (dlpibindreq (sock,
ETHERTYPE_IP, 0, DL_CLDLS, 0, 0) < 0
270 || dlpibindack (sock, (
char *)buf) < 0) {
271 log_fatal (
"Can't bind DLPI device for %s: %m", info -> name);
278 if (dlpiphysaddrreq (sock, DL_CURR_PHYS_ADDR) < 0
279 || dlpiphysaddrack (sock, (
char *)buf) < 0) {
280 log_fatal (
"Can't get DLPI hardware address for %s: %m",
284 info -> hw_address.hlen = dlp -> physaddr_ack.dl_addr_length + 1;
285 memcpy (&info -> hw_address.hbuf [1],
286 (
char *)buf + dlp -> physaddr_ack.dl_addr_offset,
287 dlp -> physaddr_ack.dl_addr_length);
290 if (strioctl (sock, DLIOCRAW, INFTIM, 0, 0) < 0) {
291 log_fatal (
"Can't set DLPI RAW mode for %s: %m",
297 if (ioctl (sock, I_PUSH,
"pfmod") < 0) {
298 log_fatal (
"Can't push packet filter onto DLPI for %s: %m",
306#if defined(USE_DLPI_PFMOD) || defined(USE_DLPI_RAW)
308strioctl (fd, cmd,
timeout, len, dp)
323 if ((rslt = ioctl (fd, I_STR, &sio)) < 0) {
337#ifndef USE_DLPI_RECEIVE
338# ifdef USE_DLPI_PFMOD
339 struct packetfilt pf;
342 info -> wfdesc = if_register_dlpi (info);
344# ifdef USE_DLPI_PFMOD
348 pf.Pf_Filter [0] = ENF_PUSHZERO;
351 if (strioctl (info -> wfdesc, PFIOCSETF, INFTIM,
352 sizeof (pf), (
char *)&pf) < 0) {
353 log_fatal (
"Can't set PFMOD send filter on %s: %m", info -> name);
362 info -> wfdesc = info -> rfdesc;
366 log_info (
"Sending on DLPI/%s/%s%s%s",
369 info -> hw_address.hlen - 1,
370 &info -> hw_address.hbuf [1]),
375#ifdef DLPI_FIRST_SEND_WAIT
377# ifdef USE_DLPI_RECEIVE
378 sleep (DLPI_FIRST_SEND_WAIT - (DLPI_FIRST_SEND_WAIT / 2));
380 sleep (DLPI_FIRST_SEND_WAIT);
390#ifndef USE_DLPI_RECEIVE
396 log_info (
"Disabling output on DLPI/%s/%s%s%s",
407#ifdef USE_DLPI_RECEIVE
412#if defined(RELAY_PORT)
413#error "Relay port is not yet supported for DLPI"
420 struct packetfilt pf;
426 info -> rfdesc = if_register_dlpi (info);
436#if defined (USE_DLPI_RAW)
437# define ETHER_H_PREFIX (14)
442 pf.Pf_Filter [pf.Pf_FilterLen++] = ENF_PUSHWORD + (offset / 2);
443 pf.Pf_Filter [pf.Pf_FilterLen++] = ENF_PUSHLIT | ENF_CAND;
444 pf.Pf_Filter [pf.Pf_FilterLen++] = htons (
ETHERTYPE_IP);
446# define ETHER_H_PREFIX (0)
461 offset = ETHER_H_PREFIX +
sizeof (iphdr) +
sizeof (u_int16_t);
462 pf.Pf_Filter [pf.Pf_FilterLen++] = ENF_PUSHWORD + (offset / 2);
463 pf.Pf_Filter [pf.Pf_FilterLen++] = ENF_PUSHLIT | ENF_CAND;
464 pf.Pf_Filter [pf.Pf_FilterLen++] =
local_port;
470 offset = ETHER_H_PREFIX + ((u_int8_t *)&(iphdr.ip_p) - (u_int8_t *)&iphdr);
471 pf.Pf_Filter [pf.Pf_FilterLen++] = ENF_PUSHWORD + (offset / 2);
472 pf.Pf_Filter [pf.Pf_FilterLen++] = ENF_PUSHLIT | ENF_AND;
473 pf.Pf_Filter [pf.Pf_FilterLen++] = htons (0x00FF);
474 pf.Pf_Filter [pf.Pf_FilterLen++] = ENF_PUSHLIT | ENF_CAND;
475 pf.Pf_Filter [pf.Pf_FilterLen++] = htons (IPPROTO_UDP);
478 if (strioctl (info -> rfdesc, PFIOCSETF, INFTIM,
479 sizeof (pf), (
char *)&pf) < 0) {
480 log_fatal (
"Can't set PFMOD receive filter on %s: %m", info -> name);
485 log_info (
"Listening on DLPI/%s/%s%s%s",
488 info -> hw_address.hlen - 1,
489 &info -> hw_address.hbuf [1]),
494#ifdef DLPI_FIRST_SEND_WAIT
497 sleep (DLPI_FIRST_SEND_WAIT / 2);
499 sleep (DLPI_FIRST_SEND_WAIT);
515 log_info (
"Disabling input on DLPI/%s/%s%s%s",
533 struct sockaddr_in *to;
540 double ih [1536 /
sizeof (double)];
541 unsigned char *dbuf = (
unsigned char *)ih;
543 unsigned char dstaddr [DLPI_MAXDLADDR];
547 if (!strcmp (interface -> name,
"fallback"))
559 if (dbuflen >
sizeof hh)
560 log_fatal (
"send_packet: hh buffer too small.\n");
562 memcpy (dbuf + fudge, (
unsigned char *)hh, dbuflen);
566 to -> sin_addr.s_addr, to -> sin_port,
567 (
unsigned char *)raw, len);
570 memcpy (dbuf + dbuflen, raw, len);
574 result = write (interface -> wfdesc, dbuf + fudge, dbuflen - fudge);
587 unsigned char phys [DLPI_MAXDLADDR];
588 unsigned char sap [4];
589 int sap_len =
interface -> dlpi_sap_length;
590 int phys_len =
interface -> hw_address.hlen - 1;
593 memset (sap, 0,
sizeof (sap));
594# if (BYTE_ORDER == LITTLE_ENDIAN)
602 if (hto && hto -> hlen == interface -> hw_address.hlen)
603 memcpy ( phys, (
char *) &hto -> hbuf [1], phys_len);
605 memcpy ( phys, interface -> dlpi_broadcast_addr.hbuf,
606 interface -> dlpi_broadcast_addr.hlen);
609 memcpy ( dstaddr, phys, phys_len);
610 memcpy ( (
char *) &dstaddr [phys_len], sap, ABS (sap_len));
613 memcpy ( dstaddr, (
void *) sap, sap_len);
614 memcpy ( (
char *) &dstaddr [sap_len], phys, phys_len);
616 addrlen = phys_len + ABS (sap_len);
619 result = dlpiunitdatareq (interface -> wfdesc, dstaddr, addrlen,
620 0, 0, dbuf, dbuflen);
628#ifdef USE_DLPI_RECEIVE
633 struct sockaddr_in *from;
636 unsigned char dbuf [1536];
637 unsigned char srcaddr [DLPI_MAXDLADDR];
638 unsigned long srcaddrlen;
645 length = read (interface -> rfdesc, dbuf,
sizeof (dbuf));
647 length = dlpiunitdataind (interface -> rfdesc, (
unsigned char *)NULL,
648 (
unsigned long *)NULL, srcaddr, &srcaddrlen,
649 (
unsigned long *)NULL, dbuf,
sizeof (dbuf));
657# if !defined (USE_DLPI_RAW)
666 int sap_len =
interface -> dlpi_sap_length;
667 int phys_len =
interface -> hw_address.hlen - 1;
669 if (hfrom && (srcaddrlen == ABS (sap_len) + phys_len )) {
670 hfrom -> hbuf [0] =
interface -> hw_address.hbuf [0];
671 hfrom -> hlen =
interface -> hw_address.hlen;
674 memcpy ((
char *) &hfrom -> hbuf [1], srcaddr, phys_len);
677 memcpy((
char *)&hfrom->
hbuf[1], srcaddr + sap_len, phys_len);
681 memset (hfrom,
'\0',
sizeof *hfrom);
703 from, length, &paylen, 1);
724 memcpy(buf, &dbuf [bufix], paylen);
747#define DLPI_MAXWAIT 15
754static int dlpiunit (ifname)
768 while ((*(cp-1) >=
'0' && *(cp-1) <=
'9') || *(cp - 1) ==
':') cp--;
772 while (*cp >=
'0' && *cp <=
'9') {
774 unit += (*cp++ -
'0');
784dlpiopen(
const char *ifname) {
794 if (*ifname ==
'/') {
798 memcpy (devname, DLPI_DEVDIR, strlen (DLPI_DEVDIR));
799 dp = &devname [strlen (DLPI_DEVDIR)];
808#if !defined(USE_DEV_NET)
810 while ((*(ep - 1) >=
'0' && *(ep - 1) <=
'9') || *(ep - 1) ==
':')
820 return open (devname, O_RDWR | O_CLOEXEC, 0);
827static int dlpiinforeq (fd)
830 dl_info_req_t info_req;
834 info_req.dl_primitive = DL_INFO_REQ;
837 ctl.len =
sizeof (info_req);
838 ctl.buf = (
char *)&info_req;
842 return putmsg (fd, &ctl, (
struct strbuf *)NULL, flags);
848static int dlpiphysaddrreq (fd, addrtype)
850 unsigned long addrtype;
852 dl_phys_addr_req_t physaddr_req;
856 physaddr_req.dl_primitive = DL_PHYS_ADDR_REQ;
857 physaddr_req.dl_addr_type = addrtype;
860 ctl.len =
sizeof (physaddr_req);
861 ctl.buf = (
char *)&physaddr_req;
865 return putmsg (fd, &ctl, (
struct strbuf *)NULL, flags);
871static int dlpiattachreq (fd, ppa)
875 dl_attach_req_t attach_req;
879 attach_req.dl_primitive = DL_ATTACH_REQ;
880 attach_req.dl_ppa = ppa;
883 ctl.len =
sizeof (attach_req);
884 ctl.buf = (
char *)&attach_req;
888 return putmsg (fd, &ctl, (
struct strbuf*)NULL, flags);
894static int dlpibindreq (fd, sap, max_conind, service_mode, conn_mgmt, xidtest)
896 unsigned long max_conind;
897 unsigned long service_mode;
898 unsigned long conn_mgmt;
899 unsigned long xidtest;
902 dl_bind_req_t bind_req;
906 bind_req.dl_primitive = DL_BIND_REQ;
907 bind_req.dl_sap = sap;
908 bind_req.dl_max_conind = max_conind;
909 bind_req.dl_service_mode = service_mode;
910 bind_req.dl_conn_mgmt = conn_mgmt;
911 bind_req.dl_xidtest_flg = xidtest;
914 ctl.len =
sizeof (bind_req);
915 ctl.buf = (
char *)&bind_req;
919 return putmsg (fd, &ctl, (
struct strbuf*)NULL, flags);
922#if defined(UNUSED_DLPI_INTERFACE)
928static int dlpiunbindreq (fd)
931 dl_unbind_req_t unbind_req;
935 unbind_req.dl_primitive = DL_UNBIND_REQ;
938 ctl.len =
sizeof (unbind_req);
939 ctl.buf = (
char *)&unbind_req;
943 return putmsg (fd, &ctl, (
struct strbuf*)NULL, flags);
952static int dlpidetachreq (fd)
955 dl_detach_req_t detach_req;
959 detach_req.dl_primitive = DL_DETACH_REQ;
962 ctl.len =
sizeof (detach_req);
963 ctl.buf = (
char *)&detach_req;
967 return putmsg (fd, &ctl, (
struct strbuf*)NULL, flags);
975static int dlpibindack (fd, bufp)
979 union DL_primitives *dlp;
983 ctl.maxlen = DLPI_MAXDLBUF;
987 if (strgetmsg (fd, &ctl,
988 (
struct strbuf*)NULL, &flags,
"dlpibindack") < 0) {
992 dlp = (
union DL_primitives *)ctl.buf;
994 if (expected (DL_BIND_ACK, dlp, flags) == -1) {
998 if (ctl.len < sizeof (dl_bind_ack_t)) {
1009static int dlpiokack (fd, bufp)
1013 union DL_primitives *dlp;
1017 ctl.maxlen = DLPI_MAXDLBUF;
1021 if (strgetmsg (fd, &ctl,
1022 (
struct strbuf*)NULL, &flags,
"dlpiokack") < 0) {
1026 dlp = (
union DL_primitives *)ctl.buf;
1028 if (expected (DL_OK_ACK, dlp, flags) == -1) {
1032 if (ctl.len < sizeof (dl_ok_ack_t)) {
1043static int dlpiinfoack (fd, bufp)
1047 union DL_primitives *dlp;
1051 ctl.maxlen = DLPI_MAXDLBUF;
1055 if (strgetmsg (fd, &ctl, (
struct strbuf *)NULL, &flags,
1056 "dlpiinfoack") < 0) {
1060 dlp = (
union DL_primitives *) ctl.buf;
1062 if (expected (DL_INFO_ACK, dlp, flags) == -1) {
1066 if (ctl.len < sizeof (dl_info_ack_t)) {
1077int dlpiphysaddrack (fd, bufp)
1081 union DL_primitives *dlp;
1085 ctl.maxlen = DLPI_MAXDLBUF;
1089 if (strgetmsg (fd, &ctl, (
struct strbuf *)NULL, &flags,
1090 "dlpiphysaddrack") < 0) {
1094 dlp = (
union DL_primitives *)ctl.buf;
1096 if (expected (DL_PHYS_ADDR_ACK, dlp, flags) == -1) {
1100 if (ctl.len < sizeof (dl_phys_addr_ack_t)) {
1108#if defined(USE_DLPI_SEND) || defined(USE_DLPI_RECEIVE)
1109int dlpiunitdatareq (fd, addr, addrlen, minpri, maxpri, dbuf, dbuflen)
1111 unsigned char *addr;
1113 unsigned long minpri;
1114 unsigned long maxpri;
1115 unsigned char *dbuf;
1118 long buf [DLPI_MAXDLBUF];
1119 union DL_primitives *dlp;
1120 struct strbuf ctl, data;
1123 dlp = (
union DL_primitives *)buf;
1124 dlp -> unitdata_req.dl_primitive = DL_UNITDATA_REQ;
1125 dlp -> unitdata_req.dl_dest_addr_length = addrlen;
1126 dlp -> unitdata_req.dl_dest_addr_offset =
sizeof (dl_unitdata_req_t);
1127 dlp -> unitdata_req.dl_priority.dl_min = minpri;
1128 dlp -> unitdata_req.dl_priority.dl_max = maxpri;
1131 memcpy ((
char *)buf + dlp -> unitdata_req.dl_dest_addr_offset,
1135 ctl.len = dlp -> unitdata_req.dl_dest_addr_offset + addrlen;
1136 ctl.buf = (
char *)buf;
1139 data.buf = (
char *)dbuf;
1143 return putmsg (fd, &ctl, &data, 0);
1146static int dlpiunitdataind (fd, daddr, daddrlen,
1147 saddr, saddrlen, grpaddr, dbuf, dlen)
1149 unsigned char *daddr;
1150 unsigned long *daddrlen;
1151 unsigned char *saddr;
1152 unsigned long *saddrlen;
1153 unsigned long *grpaddr;
1154 unsigned char *dbuf;
1157 long buf [DLPI_MAXDLBUF];
1158 union DL_primitives *dlp;
1159 struct strbuf ctl, data;
1164 dlp = (
union DL_primitives *)buf;
1165 dlp -> unitdata_ind.dl_primitive = DL_UNITDATA_IND;
1167 ctl.maxlen = DLPI_MAXDLBUF;
1169 ctl.buf = (
char *)buf;
1173 data.buf = (
char *)dbuf;
1175 result = getmsg (fd, &ctl, &data, &flags);
1182 if (ctl.len < sizeof (dl_unitdata_ind_t) ||
1183 dlp -> unitdata_ind.dl_primitive != DL_UNITDATA_IND) {
1187 if (data.len <= 0) {
1194 (
char *)buf + dlp -> unitdata_ind.dl_src_addr_offset,
1195 dlp -> unitdata_ind.dl_src_addr_length);
1198 *saddrlen = dlp -> unitdata_ind.dl_src_addr_length;
1204 (
char *)buf + dlp -> unitdata_ind.dl_dest_addr_offset,
1205 dlp -> unitdata_ind.dl_dest_addr_length);
1208 *daddrlen = dlp -> unitdata_ind.dl_dest_addr_length;
1212 *grpaddr = dlp -> unitdata_ind.dl_group_address;
1222static int expected (prim, dlp, msgflags)
1224 union DL_primitives *dlp;
1227 if (msgflags != RS_HIPRI) {
1232 if (dlp->dl_primitive != prim) {
1243static int strgetmsg (fd, ctlp, datap, flagsp, caller)
1244 struct strbuf *ctlp, *datap;
1257 pfd.events = POLLPRI;
1263 now = time (&starttime);
1264 while (now <= starttime + DLPI_MAXWAIT) {
1265 to_msec = ((starttime + DLPI_MAXWAIT) - now) * 1000;
1266 count = poll (&pfd, 1, to_msec);
1271 }
else if (count < 0) {
1272 if (errno == EAGAIN || errno == EINTR) {
1288 if ((result = getmsg (fd, ctlp, datap, flagsp)) < 0) {
1295 if (result & (MORECTL|MOREDATA)) {
1302 if (ctlp -> len <
sizeof (
long)) {
1309#if defined(USE_DLPI_SEND)
1330 isc_result_t status;
1338 log_fatal (
"Can't register I/O handle for %s: %s",
1339 fbi ->
name, isc_result_totext (status));
1340 interface_dereference (&fbi,
MDL);
1348 long buf[DLPI_MAXDLBUF];
1349 union DL_primitives *dlp;
1351 dlp = (
union DL_primitives *)buf;
1356 sock = dlpiopen(name);
1358 log_fatal(
"Can't open DLPI device for %s: %m", name);
1365 if (dlpiinforeq(sock) < 0) {
1366 log_fatal(
"Can't request DLPI MAC type for %s: %m", name);
1368 if (dlpiinfoack(sock, (
char *)buf) < 0) {
1369 log_fatal(
"Can't get DLPI MAC type for %s: %m", name);
1371 switch (dlp->info_ack.dl_mac_type) {
1383 log_fatal(
"%s: unsupported DLPI MAC type %lu", name,
1384 (
unsigned long)dlp->info_ack.dl_mac_type);
1387 if (dlp->info_ack.dl_provider_style == DL_STYLE2) {
1392 unit = dlpiunit((
char *)name);
1394 if (dlpiattachreq(sock, unit) < 0 ||
1395 dlpiokack(sock, (
char *)buf) < 0) {
1396 log_fatal(
"Can't attach DLPI device for %s: %m",
1405 if (dlpiphysaddrreq(sock, DL_CURR_PHYS_ADDR) < 0) {
1406 log_fatal(
"Can't request DLPI hardware address for %s: %m",
1409 if (dlpiphysaddrack(sock, (
char *)buf) < 0) {
1410 log_fatal(
"Can't get DLPI hardware address for %s: %m",
1413 if (dlp->physaddr_ack.dl_addr_length <
sizeof(hw->
hbuf)) {
1415 (
char *)buf + dlp->physaddr_ack.dl_addr_offset,
1416 dlp->physaddr_ack.dl_addr_length);
1417 hw->
hlen = dlp->physaddr_ack.dl_addr_length + 1;
1420 (
char *)buf + dlp->physaddr_ack.dl_addr_offset,
1421 sizeof(hw->
hbuf)-1);
char * print_hw_addr(int htype, const int hlen, const unsigned char *data) const
void if_reinitialize_receive(struct interface_info *)
void maybe_setup_fallback(void)
int supports_multiple_interfaces(struct interface_info *)
void if_deregister_send(struct interface_info *)
void assemble_hw_header(struct interface_info *, unsigned char *, unsigned *, struct hardware *)
ssize_t decode_udp_ip_header(struct interface_info *, unsigned char *, unsigned, struct sockaddr_in *, unsigned, unsigned *, int)
void if_reinitialize_send(struct interface_info *)
isc_result_t fallback_discard(omapi_object_t *)
ssize_t send_packet(struct interface_info *, struct packet *, struct dhcp_packet *, size_t, struct in_addr, struct sockaddr_in *, struct hardware *)
void assemble_udp_ip_header(struct interface_info *, unsigned char *, unsigned *, u_int32_t, u_int32_t, u_int32_t, unsigned char *, unsigned)
int can_receive_unicast_unconfigured(struct interface_info *)
ssize_t receive_packet(struct interface_info *, unsigned char *, size_t, struct sockaddr_in *, struct hardware *)
void get_hw_addr(struct interface_info *info)
void if_register_receive(struct interface_info *)
ssize_t send_fallback(struct interface_info *, struct packet *, struct dhcp_packet *, size_t, struct in_addr, struct sockaddr_in *, struct hardware *)
int can_unicast_without_arp(struct interface_info *)
void if_deregister_receive(struct interface_info *)
void if_register_fallback(struct interface_info *)
ssize_t decode_hw_header(struct interface_info *, unsigned char *, unsigned, struct hardware *)
void if_register_send(struct interface_info *)
int setup_fallback(struct interface_info **fp, const char *file, int line)
int quiet_interface_discovery
int if_readsocket(omapi_object_t *h)
isc_result_t omapi_register_io_object(omapi_object_t *, int(*)(omapi_object_t *), int(*)(omapi_object_t *), isc_result_t(*)(omapi_object_t *), isc_result_t(*)(omapi_object_t *), isc_result_t(*)(omapi_object_t *))
struct __omapi_object omapi_object_t
int log_error(const char *,...) __attribute__((__format__(__printf__
int int int log_debug(const char *,...) __attribute__((__format__(__printf__
void log_fatal(const char *,...) __attribute__((__format__(__printf__
int int log_info(const char *,...) __attribute__((__format__(__printf__
u_int8_t hbuf[HARDWARE_ADDR_LEN+1]
struct hardware anycast_mac_addr
struct hardware hw_address