projects
/
platform
/
upstream
/
crda.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fde79e3
)
regdb.h: add note that countries are sorted
author
Johannes Berg
<johannes@sipsolutions.net>
Fri, 23 May 2008 10:51:47 +0000
(12:51 +0200)
committer
Johannes Berg
<johannes@sipsolutions.net>
Fri, 23 May 2008 10:51:47 +0000
(12:51 +0200)
daemon/regdb.h
patch
|
blob
|
history
diff --git
a/daemon/regdb.h
b/daemon/regdb.h
index
cb6fa9f
..
fa25973
100644
(file)
--- a/
daemon/regdb.h
+++ b/
daemon/regdb.h
@@
-26,7
+26,12
@@
struct regdb_file_header {
__be32 magic;
/* must be REGDB_VERSION */
__be32 version;
- /* pointer (offset) into file where country list starts */
+ /*
+ * Pointer (offset) into file where country list starts
+ * and number of countries. The country list is sorted
+ * alphabetically to allow binary searching (should it
+ * become really huge.)
+ */
__be32 reg_country_ptr;
__be32 reg_country_num;
/* length (in bytes) of the signature at the end of the file */