[gnome-bluetooth] What stuff in gnome-bluetooth does, and ideas for its future

Fredrik Noring noring at nocrew.org
Wed Jan 28 23:04:00 GMT 2004


Edd,

tis 2003-11-04 klockan 01.47 skrev Edd Dumbill:
> We need a way of finding out for which bdaddrs it has a key.  Currently 
> this information is stored in /etc/bluetooth/link_key and readable only 
> by root, so we've some progress to make there.

I believe it would be helpful to change the link_key binary file format
to ascii.

This would make the file more accessible and also simplify debugging,
manual recovery, endianess compatibility, future data type compatibility
and compiler issues such as the size of "time_t". Current format is:

	struct link_key {
		bdaddr_t sba;
		bdaddr_t dba;
		uint8_t	 key[16];
		uint8_t	 type;
		time_t	 time;
	};

An ascii version could be row based. What about like this?

00:11:22:33:44:55   66:77:88:99:00:11   6d450822cf944dcedd7a5b2e347e606f   key_type   1075330902

Works with grep, awk, perl, emacs and so on too. :)

Fredrik





More information about the gnome-bluetooth mailing list