regdb.h: add note that countries are sorted
authorJohannes Berg <johannes@sipsolutions.net>
Fri, 23 May 2008 10:51:47 +0000 (12:51 +0200)
committerJohannes Berg <johannes@sipsolutions.net>
Fri, 23 May 2008 10:51:47 +0000 (12:51 +0200)
daemon/regdb.h

index cb6fa9f..fa25973 100644 (file)
@@ -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 */