#ifndef __FP_NDISC_H__ | |
#define __FP_NDISC_H__ | |
struct dns_svr_option { //rfc 4339 & rfc 61016 | |
__u8 type; | |
__u8 length; | |
__be16 reserved; | |
__be32 lifetime; | |
__be32 dns1[4]; | |
__be32 dns2[4]; | |
} __packed; | |
struct mtu_option { | |
__u8 type; | |
__u8 length; | |
__be16 reserved; | |
__be32 mtu; | |
}__attribute__((packed)); | |
bool fpnd_is_ra(struct sk_buff *skb); | |
bool fpnd_is_rs(struct sk_buff *skb); | |
void fpnd_process_ra(struct net_device *src, struct sk_buff *skb); | |
int fpnd_process_rs(struct sk_buff *skb); | |
#endif |