Skip to content

Commit

Permalink
Add new functions to get physical input and output devices. Original …
Browse files Browse the repository at this point in the history
…patch from Vangelis Koukis
  • Loading branch information
chifflier committed Sep 13, 2012
1 parent 5dfbf4d commit fae71ad
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libnetfilter_queue.i
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@
int get_nfmark();
int get_indev();
int get_outdev();
int get_physindev();
int get_physoutdev();

unsigned int get_length(void) {
return self->len;
Expand Down
10 changes: 10 additions & 0 deletions nfq_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -199,3 +199,13 @@ int payload_get_outdev(struct payload *self)
return nfq_get_outdev(self->nfad);
}

int payload_get_physindev(struct payload *self)
{
return nfq_get_physindev(self->nfad);
}

int payload_get_physoutdev(struct payload *self)
{
return nfq_get_physoutdev(self->nfad);
}

4 changes: 4 additions & 0 deletions nfq_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ int payload_get_indev(struct payload *self);

int payload_get_outdev(struct payload *self);

int payload_get_physindev(struct payload *self);

int payload_get_physoutdev(struct payload *self);

#ifdef __cplusplus
}
#endif
Expand Down

0 comments on commit fae71ad

Please sign in to comment.