Home
last modified time | relevance | path

Searched refs:dhcp_packet (Results 1 – 8 of 8) sorted by relevance

/external/dnsmasq/src/
Ddhcp.c98 daemon->dhcp_packet.iov_len = sizeof(struct dhcp_packet); in dhcp_init()
99 daemon->dhcp_packet.iov_base = safe_malloc(daemon->dhcp_packet.iov_len); in dhcp_init()
102 void dhcp_packet(time_t now) in dhcp_packet() function
104 struct dhcp_packet *mess; in dhcp_packet()
132 msg.msg_iov = &daemon->dhcp_packet; in dhcp_packet()
148 if ((size_t)sz == daemon->dhcp_packet.iov_len) in dhcp_packet()
150 if (!expand_buf(&daemon->dhcp_packet, sz + 100)) in dhcp_packet()
155 expand_buf(&daemon->dhcp_packet, sz); in dhcp_packet()
161 mess = (struct dhcp_packet *)daemon->dhcp_packet.iov_base; in dhcp_packet()
258 iov.iov_base = daemon->dhcp_packet.iov_base; in dhcp_packet()
[all …]
Drfc2131.c87 static void option_put(struct dhcp_packet *mess, unsigned char *end, int opt, int len, unsigned int…
88 static void option_put_string(struct dhcp_packet *mess, unsigned char *end,
95 static unsigned char *option_find(struct dhcp_packet *mess, size_t size, int opt_type, int minsize);
97 static size_t dhcp_packet_size(struct dhcp_packet *mess, struct dhcp_netid *netid,
99 static void clear_packet(struct dhcp_packet *mess, unsigned char *end);
101 struct dhcp_packet *mess,
114 static void do_encap_opts(struct dhcp_opt *opts, int encap, int flag, struct dhcp_packet *mess, uns…
115 static void pxe_misc(struct dhcp_packet *mess, unsigned char *end, unsigned char *uuid);
130 struct dhcp_packet *mess = (struct dhcp_packet *)daemon->dhcp_packet.iov_base; in dhcp_reply()
182 else if (size < sizeof(struct dhcp_packet)) in dhcp_reply()
[all …]
Ddnsmasq.h563 struct dhcp_packet { struct
673 struct iovec dhcp_packet; member
799 void dhcp_packet(time_t now);
869 void send_via_bpf(struct dhcp_packet *mess, size_t len,
Dbpf.c154 void send_via_bpf(struct dhcp_packet *mess, size_t len, in send_via_bpf()
Ddnsmasq.c701 dhcp_packet(now); in main()
/external/dnsmasq/contrib/wrt/
Ddhcp_lease_time.c61 struct dhcp_packet { struct
96 static unsigned char *option_find(struct dhcp_packet *mess, size_t size, int opt_type, int minsize) in option_find()
137 struct dhcp_packet packet; in main()
Ddhcp_release.c66 struct dhcp_packet { struct
252 struct dhcp_packet packet; in main()
/external/dnsmasq/contrib/lease-access/
Dlease.access.patch79 - dhcp_packet(now);
80 + dhcp_packet(piperead, now);
186 -void dhcp_packet(time_t now);
187 +void dhcp_packet(int piperead, time_t now);
270 daemon->dhcp_packet.iov_base = safe_malloc(daemon->dhcp_packet.iov_len);
273 -void dhcp_packet(time_t now)
274 +void dhcp_packet(int piperead, time_t now)
276 struct dhcp_packet *mess;
415 +static int check_access_script( int piperead, struct dhcp_lease *lease, struct dhcp_packet *mess, …