Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PF_PACKET domain socket support #27

Closed
sunmingbao opened this issue Aug 2, 2016 · 1 comment
Closed

PF_PACKET domain socket support #27

sunmingbao opened this issue Aug 2, 2016 · 1 comment

Comments

@sunmingbao
Copy link

Could you implement PF_PACKET domain socke in dpdk-ans?
thanks very much!

Some user may wanna use PF_PACKET domain socket to receive or transmit original ethernet frames.
Bellow are the sample codes.

    int ret;
    struct sockaddr_ll sock_addr = {
        .sll_family = AF_PACKET,
        .sll_protocol = 0,
        .sll_ifindex =0
    };

    int fd = socket(AF_PACKET, SOCK_RAW, htons(ETH_P_ALL));
   bind(fd, (struct sockaddr *)&sock_addr, sizeof(struct sockaddr_ll));
@bluenet13
Copy link
Member

Will not support PF_PACKET because no much benefit for it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants