Skip to content

Commit

Permalink
Kernel Panic when sending Packet with dir == DIR_OUT to ip_output() d…
Browse files Browse the repository at this point in the history
…irectly
  • Loading branch information
theGodlessLakra committed Jul 25, 2018
1 parent 6532de0 commit 15c802d
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions sys/netpfil/ipfw/ip_dn_io.c
Original file line number Diff line number Diff line change
Expand Up @@ -871,15 +871,16 @@ dummynet_io(struct mbuf **m0, int dir, struct ip_fw_args *fwa)
#ifdef PSPAT
// if (pspat_enable)
// {
if (dir == (DIR_OUT | PROTO_LAYER2)) {
int ret = ether_output_frame(fwa->oif, *m0);
// int ret = pspat_client_handler(*m0, fwa->oif);
return ret;
}
// if (dir == DIR_OUT) {
// if (dir == (DIR_OUT | PROTO_LAYER2)) {
// int ret = ether_output_frame(fwa->oif, *m0);
// int ret = pspat_client_handler(*m0, fwa->oif);
// return ret;
// }
if (dir == DIR_OUT) {
int ret = ip_output(*m0, NULL, NULL, IP_FORWARDING, NULL, NULL);
// int ret = pspat_client_handler(*m0, fwa->oif);
return ret;
}
// }
#endif

Expand Down

0 comments on commit 15c802d

Please sign in to comment.