Tuesday, March 13, 2018

set IP TOS using setsockopt


int fd;
int opt = 0xef

fd = socket(AF_INET, SOCK_DGRAM, 0);
setsockopt(fd, IPPROTO_IP, IP_TOS, &opt, sizeof(opt))

No comments:

Post a Comment