Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix Third Party Filtering #433

Open
wants to merge 8 commits into
base: dev
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Check 3rd party payload for APRS type #428
  • Loading branch information
F4FXL committed Dec 2, 2022
commit 858749628fe584b3cdca2be92628f33770c4ca7d
13 changes: 13 additions & 0 deletions src/pfilter.c
Original file line number Diff line number Diff line change
Expand Up @@ -869,6 +869,19 @@ static int filt_t (pfstate_t *pf)

assert (infop != NULL);

if(*infop == '}') {
// We have a 3d party packet, dig inside it to get the actual type.
packet_t pp_payload = ax25_from_text ((char*)infop+1, 0);
if (pp_payload == NULL) {
print_error (pf, "Invalid third party payload\n");
return (0);
}
memset (src, 0, sizeof(src));
ax25_get_addr_with_ssid (pp_payload, AX25_SOURCE, src);
(void) ax25_get_info (pp_payload, (unsigned char **)(&infop));
ax25_delete(pp_payload);
}

for (f = pf->token_str + 2; *f != '\0'; f++) {
switch (*f) {

Expand Down