Lines Matching full:1024
101 GENL_REQUEST(req, 1024, genl_family, 0, L2TP_GENL_VERSION,
104 addattr32(&req.n, 1024, L2TP_ATTR_CONN_ID, p->tunnel_id);
105 addattr32(&req.n, 1024, L2TP_ATTR_PEER_CONN_ID, p->peer_tunnel_id);
106 addattr8(&req.n, 1024, L2TP_ATTR_PROTO_VERSION, 3);
107 addattr16(&req.n, 1024, L2TP_ATTR_ENCAP_TYPE, p->encap);
111 addattr_l(&req.n, 1024, local_attr, &p->local_ip.data, p->local_ip.bytelen);
115 addattr_l(&req.n, 1024, peer_attr, &p->peer_ip.data, p->peer_ip.bytelen);
118 addattr16(&req.n, 1024, L2TP_ATTR_UDP_SPORT, p->local_udp_port);
119 addattr16(&req.n, 1024, L2TP_ATTR_UDP_DPORT, p->peer_udp_port);
143 GENL_REQUEST(req, 1024, genl_family, 0, L2TP_GENL_VERSION,
146 addattr32(&req.n, 1024, L2TP_ATTR_CONN_ID, p->tunnel_id);
147 addattr32(&req.n, 1024, L2TP_ATTR_PEER_CONN_ID, p->peer_tunnel_id);
148 addattr32(&req.n, 1024, L2TP_ATTR_SESSION_ID, p->session_id);
149 addattr32(&req.n, 1024, L2TP_ATTR_PEER_SESSION_ID, p->peer_session_id);
150 addattr16(&req.n, 1024, L2TP_ATTR_PW_TYPE, p->pw_type);
151 addattr8(&req.n, 1024, L2TP_ATTR_L2SPEC_TYPE, p->l2spec_type);
152 addattr8(&req.n, 1024, L2TP_ATTR_L2SPEC_LEN, p->l2spec_len);
154 if (p->mtu) addattr16(&req.n, 1024, L2TP_ATTR_MTU, p->mtu);
155 if (p->recv_seq) addattr(&req.n, 1024, L2TP_ATTR_RECV_SEQ);
156 if (p->send_seq) addattr(&req.n, 1024, L2TP_ATTR_SEND_SEQ);
157 if (p->lns_mode) addattr(&req.n, 1024, L2TP_ATTR_LNS_MODE);
158 if (p->data_seq) addattr8(&req.n, 1024, L2TP_ATTR_DATA_SEQ, p->data_seq);
159 if (p->reorder_timeout) addattr64(&req.n, 1024, L2TP_ATTR_RECV_TIMEOUT,
161 if (p->offset) addattr16(&req.n, 1024, L2TP_ATTR_OFFSET, p->offset);
162 if (p->cookie_len) addattr_l(&req.n, 1024, L2TP_ATTR_COOKIE,
164 if (p->peer_cookie_len) addattr_l(&req.n, 1024, L2TP_ATTR_PEER_COOKIE,
167 addattrstrz(&req.n, 1024, L2TP_ATTR_IFNAME, p->ifname);
177 GENL_REQUEST(req, 1024, genl_family, 0, L2TP_GENL_VERSION,
180 addattr32(&req.n, 1024, L2TP_ATTR_CONN_ID, p->tunnel_id);
181 addattr32(&req.n, 1024, L2TP_ATTR_SESSION_ID, p->session_id);
404 GENL_REQUEST(req, 1024, genl_family, 0, L2TP_GENL_VERSION,
411 addattr32(&req.n, 1024, L2TP_ATTR_CONN_ID, p->config.tunnel_id);