- Moved packet_len_table values to packet_db[SERVER].

- When an invalid packet_ver is found, all it's entries are discarted intead of just stopping the parsing.

whew, I'm glad regular expressions exist. =D
I'd also like to apologize for the previous revision.
That build wouldn't work because I commented out the contents of packet_len_table, resulting in packet sizes being 0 (or whatever is the default value for variables).
Got lazy, won't happen again... =X

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9507 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
FlavioJS 2006-12-16 03:20:40 +00:00
parent 25cd5a05f4
commit 08424f7e76
3 changed files with 585 additions and 550 deletions

View File

@ -4,6 +4,9 @@ AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO
IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
2006/12/16
* Moved packet_len_table values to packet_db[SERVER].
* When an invalid packet_ver is found, all it's entries are discarted
intead of just stopping the parsing.
* Increased MAX_PACKET_DB to 0x300 and added a warning for when packet ids
greater than MAX_PACKET_DB are found. [FlavioJS]
2006/12/15

File diff suppressed because it is too large Load Diff

View File

@ -48,6 +48,9 @@ enum {
DUEL_WOS
};
// packet_db[SERVER] is reserver for server use
#define SERVER 0
#define packet_len(x) packet_db[SERVER][x].len
extern struct packet_db packet_db[MAX_PACKET_VER + 1][MAX_PACKET_DB];
int clif_setip(char*);