Searched refs:getbuf (Results 1 – 2 of 2) sorted by relevance
/freebsd/sbin/setkey/ |
H A D | test-policy.c | 98 char getbuf[1024]; in test() local 117 len = sizeof(getbuf); in test() 118 memset(getbuf, 0, sizeof(getbuf)); in test() 119 if (getsockopt(so, proto, optname, getbuf, &len) < 0) in test() 127 if ((buf = ipsec_dump_policy(getbuf, NULL)) == NULL) in test()
|
/freebsd/lib/libipsec/ |
H A D | test-policy.c | 158 char getbuf[1024]; local 185 memset(getbuf, 0, sizeof(getbuf)); 186 memcpy(getbuf, policy, sizeof(struct sadb_x_policy)); 187 if (getsockopt(so, proto, optname, getbuf, &len) < 0) { 200 if ((buf = ipsec_dump_policy(getbuf, NULL)) == NULL) {
|