Lines Matching refs:bufp
931 __be16 *bufp = buf; in l2tp_build_l2tpv2_header() local
941 *bufp++ = htons(flags); in l2tp_build_l2tpv2_header()
942 *bufp++ = htons(tunnel_id); in l2tp_build_l2tpv2_header()
943 *bufp++ = htons(session_id); in l2tp_build_l2tpv2_header()
945 *bufp++ = htons(session->ns); in l2tp_build_l2tpv2_header()
946 *bufp++ = 0; in l2tp_build_l2tpv2_header()
952 return bufp - optr; in l2tp_build_l2tpv2_header()
958 char *bufp = buf; in l2tp_build_l2tpv3_header() local
959 char *optr = bufp; in l2tp_build_l2tpv3_header()
966 *((__be16 *)bufp) = htons(flags); in l2tp_build_l2tpv3_header()
967 bufp += 2; in l2tp_build_l2tpv3_header()
968 *((__be16 *)bufp) = 0; in l2tp_build_l2tpv3_header()
969 bufp += 2; in l2tp_build_l2tpv3_header()
972 *((__be32 *)bufp) = htonl(session->peer_session_id); in l2tp_build_l2tpv3_header()
973 bufp += 4; in l2tp_build_l2tpv3_header()
975 memcpy(bufp, &session->cookie[0], session->cookie_len); in l2tp_build_l2tpv3_header()
976 bufp += session->cookie_len; in l2tp_build_l2tpv3_header()
988 *((__be32 *)bufp) = htonl(l2h); in l2tp_build_l2tpv3_header()
989 bufp += 4; in l2tp_build_l2tpv3_header()
992 return bufp - optr; in l2tp_build_l2tpv3_header()