summaryrefslogtreecommitdiffstats
path: root/meta-sys940x/recipes-extended/ranpwd/ranpwd_git.bb
blob: b4e0f549be1d8d5601ebea3b28a7ac7129fa8d34 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
DESCRIPTION = "Random password generator"
LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "file://ranpwd.c;beginline=1;endline=11;md5=0e8585e19117526efedfaeb50c345d7a"
SECTION = "console/utils"
PV = "1.2+git${SRCPV}"
PR = "r0"

inherit autotools

SRC_URI = "git://git.zytor.com/utils/ranpwd.git"
SRCREV = "b62aab579e288715b82d5575befaa2b8ff210c2b"

S="${WORKDIR}/git"

do_configure_prepend () {
	if [ ! -e acinclude.m4 -a -e aclocal.m4 ]; then
		cp aclocal.m4 acinclude.m4
	fi
}

do_install() {
	install -d ${D}/${bindir}
	install -m 0755 ${S}/ranpwd ${D}/${bindir}/ranpwd
}
5/standard/preempt-rt/bcm-2xxx-rpi'>v5.15/standard/preempt-rt/bcm-2xxx-rpi Yocto Linux Embedded kernelGrokmirror user
aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/progs/sockmap_tcp_msg_prog.c
blob: fdb4bf4408fa782c6f0e91aafd500d9905b0e7f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#include <linux/bpf.h>

#include <bpf/bpf_helpers.h>
#include <bpf/bpf_endian.h>

int _version SEC("version") = 1;

SEC("sk_msg1")
int bpf_prog1(struct sk_msg_md *msg)
{
	void *data_end = (void *)(long) msg->data_end;
	void *data = (void *)(long) msg->data;

	char *d;

	if (data + 8 > data_end)
		return SK_DROP;

	bpf_printk("data length %i\n", (__u64)msg->data_end - (__u64)msg->data);
	d = (char *)data;
	bpf_printk("hello sendmsg hook %i %i\n", d[0], d[1]);

	return SK_PASS;
}

char _license[] SEC("license") = "GPL";