Lines Matching defs:proto
192 static int netlink_sock(int *sock, uint32_t *seq_nr, int proto)
199 *sock = socket(AF_NETLINK, SOCK_RAW | SOCK_CLOEXEC, proto);
538 uint8_t proto;
846 switch (desc->proto) {
899 printk("BUG: unknown proto in desc");
941 req.info.id.proto = desc->proto;
980 if (info->id.spi != spi || info->id.proto != desc->proto)
1098 struct in_addr tunsrc, struct in_addr tundst, uint8_t proto)
1133 tmpl.id.proto = proto;
1154 struct in_addr tunsrc, struct in_addr tundst, uint8_t proto)
1157 XFRM_POLICY_OUT, tunsrc, tundst, proto)) {
1163 XFRM_POLICY_IN, tunsrc, tundst, proto)) {
1223 struct in_addr src, struct in_addr dst, uint8_t proto)
1240 req.id.proto = proto;
1258 struct in_addr tunsrc, struct in_addr tundst, uint8_t proto)
1260 if (xfrm_state_del(xfrm_sock, (*seq)++, gen_spi(src), src, dst, proto)) {
1265 if (xfrm_state_del(xfrm_sock, (*seq)++, gen_spi(src), dst, src, proto)) {
1274 uint32_t spi, uint8_t proto)
1297 req.spi.info.id.proto = proto;
1325 static int netlink_sock_bind(int *sock, uint32_t *seq, int proto, uint32_t groups)
1334 if (netlink_sock(sock, seq, proto)) {
1393 xfrm_tmpl.id.proto = IPPROTO_ESP;
1467 req.expire.state.id.proto = desc->proto;
1526 XFRM_POLICY_OUT, tunsrc, tundst, desc->proto)) {
1756 if (xfrm_prepare(xfrm_sock, seq, src, dst, tunsrc, tundst, desc->proto)) {
1785 if (xfrm_delete(xfrm_sock, seq, src, dst, tunsrc, tundst, desc->proto)) {
1846 -1, desc.proto);
1903 desc->proto)) {
1916 desc->proto)) {
2033 static int write_desc(int proto, int test_desc_fd,
2039 desc.proto = proto;
2083 static int write_proto_plan(int fd, int proto)
2087 switch (proto) {
2090 if (write_desc(proto, fd, ah_list[i], 0, 0, 0))
2096 if (write_desc(proto, fd, 0, 0, comp_list[i], 0))
2105 if (write_desc(proto, fd, ah_list[i],
2111 if (write_desc(proto, fd, 0, 0, 0, ae_list[i]))
2116 printk("BUG: Specified unknown proto %d", proto);
2146 desc.proto = IPPROTO_AH;
2257 desc_name[d->type], (unsigned int)d->proto, d->a_algo,