Lines Matching refs:idx
112 #define KEY_SETSECSPIDX(_dir, s, d, ps, pd, ulp, _priority, _created, idx) \ argument
114 memset((idx), 0, sizeof(struct policyindex)); \
115 (idx)->dir = (_dir); \
116 (idx)->prefs = (ps); \
117 (idx)->prefd = (pd); \
118 (idx)->ul_proto = (ulp); \
119 (idx)->priority = (_priority); \
120 (idx)->created = (_created); \
121 memcpy(&(idx)->src, (s), sysdep_sa_len((struct sockaddr *)(s))); \
122 memcpy(&(idx)->dst, (d), sysdep_sa_len((struct sockaddr *)(d))); \
125 #define KEY_SETSECSPIDX(_dir, s, d, ps, pd, ulp, _created, idx) \ argument
127 memset((idx), 0, sizeof(struct policyindex)); \
128 (idx)->dir = (_dir); \
129 (idx)->prefs = (ps); \
130 (idx)->prefd = (pd); \
131 (idx)->ul_proto = (ulp); \
132 (idx)->created = (_created); \
133 memcpy(&(idx)->src, (s), sysdep_sa_len((struct sockaddr *)(s))); \
134 memcpy(&(idx)->dst, (d), sysdep_sa_len((struct sockaddr *)(d))); \