libspf2 1.2.11
__ns_msg_getflag.c
Go to the documentation of this file.
1/* #include "port_before.h" */
2#include "config.h"
3
4#ifdef STDC_HEADERS
5# include <stdio.h>
6#endif
7
8#include <sys/types.h>
9
10#include <netinet/in.h>
11#include "arpa_nameser.h"
12
13
14
15int __ns_msg_getflag(ns_msg handle, int flag) {
16 return(((handle)._flags & _ns_flagdata[flag].mask) >> _ns_flagdata[flag].shift);
17}
18
int __ns_msg_getflag(ns_msg handle, int flag)