Lines Matching refs:bufp
1141 __be16 *bufp = buf; in l2tp_build_l2tpv2_header() local
1151 *bufp++ = htons(flags); in l2tp_build_l2tpv2_header()
1152 *bufp++ = htons(tunnel_id); in l2tp_build_l2tpv2_header()
1153 *bufp++ = htons(session_id); in l2tp_build_l2tpv2_header()
1155 *bufp++ = htons(session->ns); in l2tp_build_l2tpv2_header()
1156 *bufp++ = 0; in l2tp_build_l2tpv2_header()
1162 return bufp - optr; in l2tp_build_l2tpv2_header()
1168 char *bufp = buf; in l2tp_build_l2tpv3_header() local
1169 char *optr = bufp; in l2tp_build_l2tpv3_header()
1176 *((__be16 *)bufp) = htons(flags); in l2tp_build_l2tpv3_header()
1177 bufp += 2; in l2tp_build_l2tpv3_header()
1178 *((__be16 *)bufp) = 0; in l2tp_build_l2tpv3_header()
1179 bufp += 2; in l2tp_build_l2tpv3_header()
1182 *((__be32 *)bufp) = htonl(session->peer_session_id); in l2tp_build_l2tpv3_header()
1183 bufp += 4; in l2tp_build_l2tpv3_header()
1185 memcpy(bufp, &session->cookie[0], session->cookie_len); in l2tp_build_l2tpv3_header()
1186 bufp += session->cookie_len; in l2tp_build_l2tpv3_header()
1198 *((__be32 *)bufp) = htonl(l2h); in l2tp_build_l2tpv3_header()
1199 bufp += 4; in l2tp_build_l2tpv3_header()
1202 return bufp - optr; in l2tp_build_l2tpv3_header()