We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3973627 commit 8587496Copy full SHA for 8587496
src/pfilter.c
@@ -869,6 +869,19 @@ static int filt_t (pfstate_t *pf)
869
870
assert (infop != NULL);
871
872
+ if(*infop == '}') {
873
+ // We have a 3d party packet, dig inside it to get the actual type.
874
+ packet_t pp_payload = ax25_from_text ((char*)infop+1, 0);
875
+ if (pp_payload == NULL) {
876
+ print_error (pf, "Invalid third party payload\n");
877
+ return (0);
878
+ }
879
+ memset (src, 0, sizeof(src));
880
+ ax25_get_addr_with_ssid (pp_payload, AX25_SOURCE, src);
881
+ (void) ax25_get_info (pp_payload, (unsigned char **)(&infop));
882
+ ax25_delete(pp_payload);
883
884
+
885
for (f = pf->token_str + 2; *f != '\0'; f++) {
886
switch (*f) {
887
0 commit comments