Lines Matching refs:bufp
933 __be16 *bufp = buf; in l2tp_build_l2tpv2_header() local
943 *bufp++ = htons(flags); in l2tp_build_l2tpv2_header()
944 *bufp++ = htons(tunnel_id); in l2tp_build_l2tpv2_header()
945 *bufp++ = htons(session_id); in l2tp_build_l2tpv2_header()
947 *bufp++ = htons(session->ns); in l2tp_build_l2tpv2_header()
948 *bufp++ = 0; in l2tp_build_l2tpv2_header()
954 return bufp - optr; in l2tp_build_l2tpv2_header()
960 char *bufp = buf; in l2tp_build_l2tpv3_header() local
961 char *optr = bufp; in l2tp_build_l2tpv3_header()
968 *((__be16 *)bufp) = htons(flags); in l2tp_build_l2tpv3_header()
969 bufp += 2; in l2tp_build_l2tpv3_header()
970 *((__be16 *)bufp) = 0; in l2tp_build_l2tpv3_header()
971 bufp += 2; in l2tp_build_l2tpv3_header()
974 *((__be32 *)bufp) = htonl(session->peer_session_id); in l2tp_build_l2tpv3_header()
975 bufp += 4; in l2tp_build_l2tpv3_header()
977 memcpy(bufp, &session->cookie[0], session->cookie_len); in l2tp_build_l2tpv3_header()
978 bufp += session->cookie_len; in l2tp_build_l2tpv3_header()
990 *((__be32 *)bufp) = htonl(l2h); in l2tp_build_l2tpv3_header()
991 bufp += 4; in l2tp_build_l2tpv3_header()
994 return bufp - optr; in l2tp_build_l2tpv3_header()