diff options
author | Kozlov Dmitry <xeb@mail.ru> | 2013-01-26 12:09:20 +0400 |
---|---|---|
committer | Kozlov Dmitry <xeb@mail.ru> | 2013-01-26 12:09:20 +0400 |
commit | 9090b3c07b7b03be624599aa09be16ee85d06745 (patch) | |
tree | 6641353564097a830353969369426abb94f76f2f /accel-pppd/ctrl/ipoe/dhcpv4.h | |
parent | b4d2b981d0644855124a035e673d7eef3900e614 (diff) | |
download | accel-ppp-9090b3c07b7b03be624599aa09be16ee85d06745.tar.gz accel-ppp-9090b3c07b7b03be624599aa09be16ee85d06745.zip |
ipoe: insert opt82 to each relay packet
Diffstat (limited to 'accel-pppd/ctrl/ipoe/dhcpv4.h')
-rw-r--r-- | accel-pppd/ctrl/ipoe/dhcpv4.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/accel-pppd/ctrl/ipoe/dhcpv4.h b/accel-pppd/ctrl/ipoe/dhcpv4.h index a6a445b3..cea0934c 100644 --- a/accel-pppd/ctrl/ipoe/dhcpv4.h +++ b/accel-pppd/ctrl/ipoe/dhcpv4.h @@ -105,9 +105,11 @@ void dhcpv4_free(struct dhcpv4_serv *); struct dhcpv4_relay *dhcpv4_relay_create(const char *addr, const char *giaddr, struct triton_context_t *ctx, triton_event_func recv); void dhcpv4_relay_free(struct dhcpv4_relay *, struct triton_context_t *); -int dhcpv4_relay_send(struct dhcpv4_relay *relay, struct dhcpv4_packet *request, uint32_t server_id); +int dhcpv4_relay_send(struct dhcpv4_relay *relay, struct dhcpv4_packet *request, uint32_t server_id, + const char *agent_circuit_id, const char *agent_remote_id); int dhcpv4_relay_send_release(struct dhcpv4_relay *relay, uint8_t *chaddr, uint32_t xid, uint32_t ciaddr, - struct dhcpv4_option *client_id, struct dhcpv4_option *relay_agent); + struct dhcpv4_option *client_id, struct dhcpv4_option *relay_agent, + const char *agent_circuit_id, const char *agent_remote_id); int dhcpv4_send_reply(int msg_type, struct dhcpv4_serv *serv, struct dhcpv4_packet *req, uint32_t yiaddr, uint32_t siaddr, uint32_t mask, int lease_time, struct dhcpv4_packet *relay_reply); int dhcpv4_send_nak(struct dhcpv4_serv *serv, struct dhcpv4_packet *req); |