diff options
author | Kozlov Dmitry <xeb@mail.ru> | 2013-01-26 08:48:19 +0400 |
---|---|---|
committer | Kozlov Dmitry <xeb@mail.ru> | 2013-01-26 08:48:19 +0400 |
commit | cde7ee4d629b32c810ceac836b70a4289b4f00b3 (patch) | |
tree | e488abbf65cd9c9c993a8bf10d378aa1948eb8af /accel-pppd/ctrl/ipoe/dhcpv4.h | |
parent | 8e64c1f76836af915d9530d396ed2028decdc6d3 (diff) | |
download | accel-ppp-cde7ee4d629b32c810ceac836b70a4289b4f00b3.tar.gz accel-ppp-cde7ee4d629b32c810ceac836b70a4289b4f00b3.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 a6a445b..cea0934 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); |