]> git.ipfire.org Git - thirdparty/systemd.git/blob - src/shared/generate-socket-protocol-list.sh
tree-wide: remove various unused functions
[thirdparty/systemd.git] / src / shared / generate-socket-protocol-list.sh
1 #!/bin/sh
2 set -eu
3
4 $1 -dM -include netinet/in.h - </dev/null | \
5 awk '/^#define[ \t]+IPPROTO_[^ \t]+[ \t]+[^ \t]/ { print $2; }' | \
6 sed -e 's/IPPROTO_//'