summaryrefslogtreecommitdiff
path: root/accel-pppd/ctrl/pppoe/vpppoe.h
blob: d56bd745bc35165173782f8d9a437f3a1c1f2215 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#ifndef VPPPOE_H
#define VPPPOE_H

void vpppoe_get();
void vpppoe_put();

struct triton_context_t;

typedef struct vpppoe_setup_pppoe_interface_ctx_t
{
    struct triton_context_t *tctx;
    void (*callback)(struct vpppoe_setup_pppoe_interface_ctx_t *ctx);
    void *priv;

    int remove_after;

    /* Output values */
    int err; /* 0 - OK */
    uint32_t ifindex;
    char ifname[16];
} vpppoe_setup_pppoe_interface_ctx_t;

int vpppoe_async_add_pppoe_interface(uint8_t *client_mac, in_addr_t *client_ip, uint16_t session_id, vpppoe_setup_pppoe_interface_ctx_t *callback_ctx);
void vpppoe_async_del_pppoe_interface(uint8_t *client_mac, in_addr_t *client_ip, uint16_t session_id, uint32_t ifindex, char *ifname);

#endif /* VPPPOE_H */