Sponsored Content
Top Forums UNIX for Advanced & Expert Users sending a null character to a terminal Post 85092 by Perderabo on Friday 30th of September 2005 09:58:36 PM
Old 09-30-2005
control-@ is a null. But your terminal driver and shell may influence the conditions under which it will transmit a null character to the system.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

GREP a string with NULL Character

Does anyone know how to use grep/egrep to find a string that contains a null character? i.e.: the string looks like this: null0001nullN well I want to be able to : grep '0001N' is there a wildcard character or something that I can put in the grep to include the nulls? (3 Replies)
Discussion started by: weerich
3 Replies

2. UNIX for Dummies Questions & Answers

sending messages through terminal

whats the cmd to send messages using terminal to another computer on our network? We are running SOlaris CDE (5 Replies)
Discussion started by: korupt
5 Replies

3. Programming

Sending INtr key for remote terminal

Hi folks, Just wondering if anyone knows how to send intr/break key to remote tty (shell), a simple example would be great! thx (2 Replies)
Discussion started by: andryk
2 Replies

4. UNIX for Dummies Questions & Answers

Find files which contain a null character

Hi, I would like to use grep to find files which contain NULL characters. I'm not sure how to represent the null character in the grep statement. Could anyone help please? Thanks! Helen :confused: (5 Replies)
Discussion started by: Bab00shka
5 Replies

5. Shell Programming and Scripting

sending message to terminal

hi all i have script #!/bin/bash cd /usr3/prod grep ERROR /usr3/prod/ind.log > /usr3/prod/ind_err.log if test -s /usr3/prod/ind_err.log then echo "error during process" else echo "process succeed" fi i want that this message(echo) will be display one time at the top of the screen... (5 Replies)
Discussion started by: naamas03
5 Replies

6. Shell Programming and Scripting

Null Character Handling

Hi All, I have a problem with Null values while reading line by line from a text file. I wrote a shell script to read set of file names from a text file line by line, and zipping the each individual file and copying those zip files into some separate directory, and removing the original file... (3 Replies)
Discussion started by: npk2210
3 Replies

7. UNIX for Advanced & Expert Users

Insertion of Null Character while writing into file

I have a huge file with record length around 5000 characters. There is an ETL tool datastage which is writing this data to the file(AIX server). At position 4095 i have seen NULL Character(^@). when i am using this command "head -1 file_nm | sed 's/\000//g'" --- the output is displaying... (3 Replies)
Discussion started by: issaq84mohd
3 Replies

8. UNIX for Dummies Questions & Answers

Sending command from one terminal to another.

Hello, I am running a program in a terminal. this program is just printing random words. I can change the color of each word by entering the first character of the color(for example G for Green). I want to write a bash code that runs in a different terminal and sends different characters to... (3 Replies)
Discussion started by: alireza6485
3 Replies

9. UNIX for Dummies Questions & Answers

Sending Mail in OS X Terminal

Hi All! I would like your assistance with an issue that I have been having with OS X (Snow Leopard 10.6.8) and sending mail through the Terminal. I had been trying to send mail from Terminal to my GMail account from my home, where I have a Verizon DSL Internet connection routed through a... (0 Replies)
Discussion started by: danielsutton
0 Replies

10. Shell Programming and Scripting

Remove first NULL Character in Flat File

We have a flat file with below data : ^@^@^@^@00000305^@^@^@^@^@^@430^@430^@^@^@^@^@^@^@^@^@09079989530As we can see ^@ is Null character in this file I want to remove only the first few null characters before string 00000305 How can we do that, any idea. I want a new file without first few... (5 Replies)
Discussion started by: simpltyansh
5 Replies
IEEE8021_AMRR(9)					   BSD Kernel Developer's Manual					  IEEE8021_AMRR(9)

NAME
ieee80211_amrr -- 802.11 network driver transmit rate control support SYNOPSIS
#include <net80211/ieee80211_amrr.h> void ieee80211_amrr_init(struct ieee80211_amrr *, struct ieee80211vap *, int amin, int amax, int interval); void ieee80211_amrr_cleanup(struct ieee80211_amrr *); void ieee80211_amrr_setinterval(struct ieee80211_amrr *, int interval); void ieee80211_amrr_node_init(struct ieee80211_amrr *, struct ieee80211_amrr_node *, struct ieee80211_node *); int ieee80211_amrr_choose(struct ieee80211_node *, struct ieee80211_amrr_node *); void ieee80211_amrr_tx_complete(struct ieee80211_amrr_node *, int ok, int retries); void ieee80211_amrr_tx_update(struct ieee80211_amrr_node *, int txnct, int success, int retrycnt); DESCRIPTION
ieee80211_amrr is an implementation of the AMRR transmit rate control algorithm for drivers that use the net80211 software layer. A rate control algorithm is responsible for choosing the transmit rate for each frame. To maximize throughput algorithms try to use the highest rate that is appropriate for the operating conditions. The rate will vary as conditions change; the distance between two stations may change, transient noise may be present that affects signal quality, etc. ieee80211_amrr uses very simple information from a driver to do it's job: whether a frame was successfully delivered and how many transmit attempts were made. While this enables its use with virtually any wireless device it limits it's effectiveness--do not expect it to function well in difficult environments and/or respond quickly to changing conditions. ieee80211_amrr requires per-vap state and per-node state for each station it is to select rates for. The API's are designed for drivers to pre-allocate state in the driver-private extension areas of each vap and node. For example the ral(4) driver defines a vap as: struct rt2560_vap { struct ieee80211vap ral_vap; struct ieee80211_beacon_offsets ral_bo; struct ieee80211_amrr amrr; int (*ral_newstate)(struct ieee80211vap *, enum ieee80211_state, int); }; The amrr structure member holds the per-vap state for ieee80211_amrr and ral(4) initializes it in the vap create method with: ieee80211_amrr_init(&rvp->amrr, vap, IEEE80211_AMRR_MIN_SUCCESS_THRESHOLD, IEEE80211_AMRR_MAX_SUCCESS_THRESHOLD, 500 /* ms */); The node is defined as: struct rt2560_node { struct ieee80211_node ni; struct ieee80211_amrr_node amrr; }; with initialization done in the driver's iv_newassoc method: static void rt2560_newassoc(struct ieee80211_node *ni, int isnew) { struct ieee80211vap *vap = ni->ni_vap; ieee80211_amrr_node_init(&RT2560_VAP(vap)->amrr, &RT2560_NODE(ni)->amrr, ni); } Once ieee80211_amrr state is setup, transmit rates are requested by calling ieee80211_amrr_choose() in the transmit path; e.g.: tp = &vap->iv_txparms[ieee80211_chan2mode(ni->ni_chan)]; if (IEEE80211_IS_MULTICAST(wh->i_addr1)) { rate = tp->mcastrate; } else if (m0->m_flags & M_EAPOL) { rate = tp->mgmtrate; } else if (tp->ucastrate != IEEE80211_FIXED_RATE_NONE) { rate = tp->ucastrate; } else { (void) ieee80211_amrr_choose(ni, &RT2560_NODE(ni)->amrr); rate = ni->ni_txrate; } Note a rate is chosen only for unicast data frames when a fixed transmit rate is not configured; the other cases are handled with the net80211 transmit parameters. Note also that ieee80211_amrr_choose() writes the chosen rate in ni_txrate; this eliminates copying the value as it is exported to user applications so they can display the current transmit rate in status. The remaining work a driver must do is feed status back to ieee80211_amrr when a frame transmit completes using ieee80211_amrr_tx_complete(). Drivers that poll a device to retrieve statistics can use ieee80211_amrr_tx_update() (instead or in addition). SEE ALSO
ieee80211(9), ieee80211_output(9) BSD
August 4, 2009 BSD
All times are GMT -4. The time now is 12:23 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy