Add ICMPv6 support with acceleration
This commit is contained in:
parent
5dcbd68b75
commit
58d038dc0b
4 changed files with 120 additions and 2 deletions
5
l2tpns.h
5
l2tpns.h
|
|
@ -1044,6 +1044,10 @@ int cli_arg_help(struct cli_def *cli, int cr_ok, char *entry, ...);
|
|||
|
||||
|
||||
// icmp.c
|
||||
extern int icmpv6fd;
|
||||
void icmpv6_init(void);
|
||||
void icmpv6_listen(int ifidx);
|
||||
void icmpv6_process_from_kernel(uint8_t *p, size_t size_bufp);
|
||||
void host_unreachable(in_addr_t destination, uint16_t id, in_addr_t source, uint8_t *packet, int packet_len);
|
||||
|
||||
|
||||
|
|
@ -1087,6 +1091,7 @@ struct event_data {
|
|||
FD_TYPE_PPP_CHAN,
|
||||
FD_TYPE_PPP_IF,
|
||||
FD_TYPE_DHCPV6,
|
||||
FD_TYPE_ICMPV6,
|
||||
} type;
|
||||
int index; // for RADIUS, BGP, UDP
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue