patch-2.4.20 linux-2.4.20/include/net/ndisc.h
Next file: linux-2.4.20/include/net/tcp.h
Previous file: linux-2.4.20/include/net/iw_handler.h
Back to the patch index
Back to the overall index
- Lines: 26
- Date:
Thu Nov 28 15:53:15 2002
- Orig file:
linux-2.4.19/include/net/ndisc.h
- Orig date:
Fri Aug 2 17:39:46 2002
diff -urN linux-2.4.19/include/net/ndisc.h linux-2.4.20/include/net/ndisc.h
@@ -51,6 +51,25 @@
__u32 retrans_timer;
};
+struct nd_opt_hdr {
+ __u8 nd_opt_type;
+ __u8 nd_opt_len;
+} __attribute__((__packed__));
+
+struct ndisc_options {
+ struct nd_opt_hdr *nd_opt_array[7];
+ struct nd_opt_hdr *nd_opt_piend;
+};
+
+#define nd_opts_src_lladdr nd_opt_array[ND_OPT_SOURCE_LL_ADDR]
+#define nd_opts_tgt_lladdr nd_opt_array[ND_OPT_TARGET_LL_ADDR]
+#define nd_opts_pi nd_opt_array[ND_OPT_PREFIX_INFO]
+#define nd_opts_pi_end nd_opt_piend
+#define nd_opts_rh nd_opt_array[ND_OPT_REDIRECT_HDR]
+#define nd_opts_mtu nd_opt_array[ND_OPT_MTU]
+
+extern struct nd_opt_hdr *ndisc_next_option(struct nd_opt_hdr *cur, struct nd_opt_hdr *end);
+extern struct ndisc_options *ndisc_parse_options(u8 *opt, int opt_len, struct ndisc_options *ndopts);
extern int ndisc_init(struct net_proto_family *ops);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)