b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame] | 1 | #ifndef __FP_NDISC_H__ |
| 2 | #define __FP_NDISC_H__ |
| 3 | |
| 4 | |
| 5 | struct dns_svr_option { //rfc 4339 & rfc 61016 |
| 6 | __u8 type; |
| 7 | __u8 length; |
| 8 | __be16 reserved; |
| 9 | __be32 lifetime; |
| 10 | __be32 dns1[4]; |
| 11 | __be32 dns2[4]; |
| 12 | } __packed; |
| 13 | |
| 14 | struct mtu_option { |
| 15 | __u8 type; |
| 16 | __u8 length; |
| 17 | __be16 reserved; |
| 18 | __be32 mtu; |
| 19 | }__attribute__((packed)); |
| 20 | |
| 21 | bool fpnd_is_ra(struct sk_buff *skb); |
| 22 | bool fpnd_is_rs(struct sk_buff *skb); |
| 23 | void fpnd_process_ra(struct net_device *src, struct sk_buff *skb); |
| 24 | int fpnd_process_rs(struct sk_buff *skb); |
| 25 | #endif |