Thanks to visit codestin.com
Credit goes to github.com

Skip to content

The size of pfioc_rule grew in OpenBSD 6.4#354

Merged
brianmay merged 1 commit into
sshuttle:masterfrom
twinshadow:pf-openbsd64
Sep 22, 2019
Merged

The size of pfioc_rule grew in OpenBSD 6.4#354
brianmay merged 1 commit into
sshuttle:masterfrom
twinshadow:pf-openbsd64

Conversation

@twinshadow
Copy link
Copy Markdown
Contributor

Specifically in this revision:
openbsd/src@64d55eb

I confirmed this by using the test program provided from #282 and some bisecting.

test.c:

#include <stdio.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <net/if.h>
#include "testdir/pfvar.h"

int main() {
        int size = sizeof(struct pfioc_rule);
        printf("Size: %d\n", size);
        return 0;
}

results:

$ cvs -d [email protected]:/cvs export -d testdir -nlr OPENBSD_6_3 src/sys/net/pfvar.h
U testdir/pfvar.h
$ cc -o test test.c
$ ./test
Size: 3416
$ rm -rf testdir
$ cvs -d [email protected]:/cvs export -d testdir -nlr OPENBSD_6_4 src/sys/net/pfvar.h
U testdir/pfvar.h
$ cc -o test test.c
$ ./test
Size: 3424

@twinshadow
Copy link
Copy Markdown
Contributor Author

I should add that I'm running OpenBSD-current (which will become 6.6 when released), and I've not seen any other changes to struct pfioc_rule since that one change in the 6.4 release.

@brianmay brianmay merged commit 21ef365 into sshuttle:master Sep 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants