Spoofing adjustments

This commit is contained in:
MysterD 2022-03-02 00:07:41 -08:00
parent 8bfadc95f1
commit 7a4505e353
5 changed files with 0 additions and 30 deletions

View file

@ -44,12 +44,6 @@ void network_receive_area_request(struct Packet* p) {
return;
}
// anti spoof
if (packet_spoofed(p, globalIndex)) {
LOG_ERROR("rx spoofed area request");
return;
}
// send area
network_send_area(toNp);
}

View file

@ -67,12 +67,6 @@ void network_receive_level_area_inform(struct Packet* p) {
return;
}
// anti spoof
if (packet_spoofed(p, globalIndex)) {
LOG_ERROR("rx spoofed level area inform");
return;
}
sLevelAreaInformSeq[0][globalIndex] = seq;
network_player_update_course_level(np, courseNum, actNum, levelNum, areaIndex);

View file

@ -51,12 +51,6 @@ void network_receive_level_request(struct Packet* p) {
return;
}
// anti spoof
if (packet_spoofed(p, globalIndex)) {
LOG_ERROR("rx spoofed level request");
return;
}
// send level
network_send_level(toNp, false);
}

View file

@ -294,12 +294,6 @@ static struct SyncObject* packet_read_object_header(struct Packet* p, u8* fromLo
struct NetworkPlayer* np = network_player_from_global_index(fromGlobalIndex);
*fromLocalIndex = (np != NULL) ? np->localIndex : p->localIndex;
// anti spoof
if (packet_spoofed(p, fromGlobalIndex)) {
LOG_ERROR("rx spoofed object");
return NULL;
}
// get sync ID, sanity check
u32 syncId = 0;
packet_read(p, &syncId, sizeof(u32));

View file

@ -75,12 +75,6 @@ void network_receive_spawn_star_nle(struct Packet* p) {
packet_read(p, &syncId, sizeof(u32));
packet_read(p, &params, sizeof(u32));
// anti spoof
if (packet_spoofed(p, globalIndex)) {
LOG_ERROR("rx spoofed star");
return;
}
// grab network player first
struct Object* object = NULL;
if (globalIndex != UNKNOWN_GLOBAL_INDEX) {