Lines Matching refs:bufp
982 __be16 *bufp = buf; in l2tp_build_l2tpv2_header() local
992 *bufp++ = htons(flags); in l2tp_build_l2tpv2_header()
993 *bufp++ = htons(tunnel_id); in l2tp_build_l2tpv2_header()
994 *bufp++ = htons(session_id); in l2tp_build_l2tpv2_header()
996 *bufp++ = htons(session->ns); in l2tp_build_l2tpv2_header()
997 *bufp++ = 0; in l2tp_build_l2tpv2_header()
1004 return bufp - optr; in l2tp_build_l2tpv2_header()
1010 char *bufp = buf; in l2tp_build_l2tpv3_header() local
1011 char *optr = bufp; in l2tp_build_l2tpv3_header()
1018 *((__be16 *) bufp) = htons(flags); in l2tp_build_l2tpv3_header()
1019 bufp += 2; in l2tp_build_l2tpv3_header()
1020 *((__be16 *) bufp) = 0; in l2tp_build_l2tpv3_header()
1021 bufp += 2; in l2tp_build_l2tpv3_header()
1024 *((__be32 *) bufp) = htonl(session->peer_session_id); in l2tp_build_l2tpv3_header()
1025 bufp += 4; in l2tp_build_l2tpv3_header()
1027 memcpy(bufp, &session->cookie[0], session->cookie_len); in l2tp_build_l2tpv3_header()
1028 bufp += session->cookie_len; in l2tp_build_l2tpv3_header()
1042 *((__be32 *) bufp) = htonl(l2h); in l2tp_build_l2tpv3_header()
1044 bufp += session->l2specific_len; in l2tp_build_l2tpv3_header()
1047 bufp += session->offset; in l2tp_build_l2tpv3_header()
1049 return bufp - optr; in l2tp_build_l2tpv3_header()