patch-2.4.0-test11 linux/include/net/irda/discovery.h
Next file: linux/include/net/irda/ircomm_core.h
Previous file: linux/include/net/dn_nsp.h
Back to the patch index
Back to the overall index
- Lines: 24
- Date:
Sat Nov 18 21:11:34 2000
- Orig file:
v2.4.0-test10/linux/include/net/irda/discovery.h
- Orig date:
Fri Sep 8 12:52:39 2000
diff -u --recursive --new-file v2.4.0-test10/linux/include/net/irda/discovery.h linux/include/net/irda/discovery.h
@@ -44,8 +44,8 @@
/*
* The DISCOVERY structure is used for both discovery requests and responses
*/
-typedef struct {
- queue_t q; /* Must be first! */
+typedef struct discovery_t {
+ irda_queue_t q; /* Must be first! */
__u32 saddr; /* Which link the device was discovered */
__u32 daddr; /* Remote device address */
@@ -59,10 +59,12 @@
int gen_addr_bit; /* Need to generate a new device address? */
int nslots; /* Number of slots to use when discovering */
unsigned long timestamp; /* Time discovered */
+ unsigned long first_timestamp; /* First time discovered */
} discovery_t;
void irlmp_add_discovery(hashbin_t *cachelog, discovery_t *discovery);
void irlmp_add_discovery_log(hashbin_t *cachelog, hashbin_t *log);
void irlmp_expire_discoveries(hashbin_t *log, __u32 saddr, int force);
+struct irda_device_info *irlmp_copy_discoveries(hashbin_t *log, int *pn, __u16 mask);
#endif
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)