Lines Matching refs:proto

154 static int netlink_sock(int *sock, uint32_t *seq_nr, int proto)
161 *sock = socket(AF_NETLINK, SOCK_RAW | SOCK_CLOEXEC, proto);
497 uint8_t proto;
858 switch (desc->proto) {
911 printk("BUG: unknown proto in desc");
953 req.info.id.proto = desc->proto;
992 if (info->id.spi != spi || info->id.proto != desc->proto)
1110 struct in_addr tunsrc, struct in_addr tundst, uint8_t proto)
1145 tmpl.id.proto = proto;
1166 struct in_addr tunsrc, struct in_addr tundst, uint8_t proto)
1169 XFRM_POLICY_OUT, tunsrc, tundst, proto)) {
1175 XFRM_POLICY_IN, tunsrc, tundst, proto)) {
1235 struct in_addr src, struct in_addr dst, uint8_t proto)
1252 req.id.proto = proto;
1270 struct in_addr tunsrc, struct in_addr tundst, uint8_t proto)
1272 if (xfrm_state_del(xfrm_sock, (*seq)++, gen_spi(src), src, dst, proto)) {
1277 if (xfrm_state_del(xfrm_sock, (*seq)++, gen_spi(src), dst, src, proto)) {
1286 uint32_t spi, uint8_t proto)
1309 req.spi.info.id.proto = proto;
1337 static int netlink_sock_bind(int *sock, uint32_t *seq, int proto, uint32_t groups)
1346 if (netlink_sock(sock, seq, proto)) {
1405 xfrm_tmpl.id.proto = IPPROTO_ESP;
1479 req.expire.state.id.proto = desc->proto;
1538 XFRM_POLICY_OUT, tunsrc, tundst, desc->proto)) {
1619 if (xfrm_prepare(xfrm_sock, seq, src, dst, tunsrc, tundst, desc->proto)) {
1648 if (xfrm_delete(xfrm_sock, seq, src, dst, tunsrc, tundst, desc->proto)) {
1709 -1, desc.proto);
1763 desc->proto)) {
1776 desc->proto)) {
1893 static int write_desc(int proto, int test_desc_fd,
1899 desc.proto = proto;
1943 static int write_proto_plan(int fd, int proto)
1947 switch (proto) {
1950 if (write_desc(proto, fd, ah_list[i], 0, 0, 0))
1956 if (write_desc(proto, fd, 0, 0, comp_list[i], 0))
1965 if (write_desc(proto, fd, ah_list[i],
1971 if (write_desc(proto, fd, 0, 0, 0, ae_list[i]))
1976 printk("BUG: Specified unknown proto %d", proto);
2004 desc.proto = IPPROTO_AH;
2111 desc_name[d->type], (unsigned int)d->proto, d->a_algo,