Lines Matching refs:pkt
37 mopPutChar(u_char *pkt, int *idx, u_char value) in mopPutChar() argument
39 pkt[*idx] = value; in mopPutChar()
44 mopPutShort(u_char *pkt, int *idx, u_short value) in mopPutShort() argument
48 pkt[*idx+i] = value % 256; in mopPutShort()
55 mopPutLong(u_char *pkt, int *idx, u_int32_t value) in mopPutLong() argument
59 pkt[*idx+i] = value % 256; in mopPutLong()
66 mopPutMulti(u_char *pkt, int *idx, const u_char *value, int size) in mopPutMulti() argument
71 pkt[*idx+i] = value[i]; in mopPutMulti()
77 mopPutTime(u_char *pkt, int *idx, time_t value) in mopPutTime() argument
90 mopPutChar (pkt,idx,10); in mopPutTime()
91 mopPutChar (pkt,idx,(timenow->tm_year / 100) + 19); in mopPutTime()
92 mopPutChar (pkt,idx,(timenow->tm_year % 100)); in mopPutTime()
93 mopPutChar (pkt,idx,(timenow->tm_mon + 1)); in mopPutTime()
94 mopPutChar (pkt,idx,(timenow->tm_mday)); in mopPutTime()
95 mopPutChar (pkt,idx,(timenow->tm_hour)); in mopPutTime()
96 mopPutChar (pkt,idx,(timenow->tm_min)); in mopPutTime()
97 mopPutChar (pkt,idx,(timenow->tm_sec)); in mopPutTime()
98 mopPutChar (pkt,idx,0x00); in mopPutTime()
99 mopPutChar (pkt,idx,0x00); in mopPutTime()
100 mopPutChar (pkt,idx,0x00); in mopPutTime()
104 mopPutHeader(u_char *pkt, int *idx, const u_char *dst, const u_char *src, in mopPutHeader() argument
108 mopPutMulti(pkt, idx, dst, 6); in mopPutHeader()
109 mopPutMulti(pkt, idx, src, 6); in mopPutHeader()
111 mopPutShort(pkt, idx, 0); in mopPutHeader()
112 mopPutChar (pkt, idx, MOP_K_PROTO_802_DSAP); in mopPutHeader()
113 mopPutChar (pkt, idx, MOP_K_PROTO_802_SSAP); in mopPutHeader()
114 mopPutChar (pkt, idx, MOP_K_PROTO_802_CNTL); in mopPutHeader()
115 mopPutChar (pkt, idx, 0x08); in mopPutHeader()
116 mopPutChar (pkt, idx, 0x00); in mopPutHeader()
117 mopPutChar (pkt, idx, 0x2b); in mopPutHeader()
120 mopPutChar(pkt, idx, (proto / 256)); in mopPutHeader()
121 mopPutChar(pkt, idx, (proto % 256)); in mopPutHeader()
124 mopPutChar(pkt, idx, (proto / 256)); in mopPutHeader()
125 mopPutChar(pkt, idx, (proto % 256)); in mopPutHeader()
127 mopPutChar(pkt, idx, (proto % 256)); in mopPutHeader()
128 mopPutChar(pkt, idx, (proto / 256)); in mopPutHeader()
132 mopPutShort(pkt, idx, 0); in mopPutHeader()
137 mopPutLength(u_char *pkt, int trans, u_short len) in mopPutLength() argument
144 mopPutChar(pkt, &idx, ((len - 16) % 256)); in mopPutLength()
145 mopPutChar(pkt, &idx, ((len - 16) / 256)); in mopPutLength()
150 mopPutChar(pkt, &idx, ((len - 14) / 256)); in mopPutLength()
151 mopPutChar(pkt, &idx, ((len - 14) % 256)); in mopPutLength()
153 mopPutChar(pkt, &idx, ((len - 14) % 256)); in mopPutLength()
154 mopPutChar(pkt, &idx, ((len - 14) / 256)); in mopPutLength()